Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AI support for playbook run status #270

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

Conversation

jespino
Copy link
Member

@jespino jespino commented Dec 18, 2024

Summary

This PR adds support for AI-generated status updates in Playbook runs. It exposes the necessary components and APIs to allow the Playbooks plugin to leverage the AI plugin's capabilities for generating status updates.

Key Changes

  • Added a new API endpoint /playbook_run/:playbookrunid/generate_status that generates status updates for playbook runs using AI
  • Created a new prompt template for playbook run status generation that can:
    • Follow a specific template format if provided
    • Take additional instructions to guide the generation
    • Consider previous messages for context
    • Generate direct summaries without introductory text
  • Exposed the bot selector component and bot loader hook for reuse in other plugins
  • Added support for using different AI bots for status generation

Technical Details

  • The status generation API accepts:
    • Instructions to guide the generation
    • Previous messages for context
    • Bot selection for using different AI models
  • The API streams the generated content back to the client
  • Added proper authorization checks for playbook run access
  • The prompt template is designed to generate concise, relevant updates based on channel activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants