-
Notifications
You must be signed in to change notification settings - Fork 342
Feature/copilot trigger creation #274
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
Conversation
- Add support for One-Time and Recurring triggers in Copilot - Extend CopilotAssistantMessageActionPart schema with trigger config types - Update Copilot instructions with trigger creation examples and guidelines - Implement trigger action handling in messages.tsx component - Add trigger icons (⏰ for one-time, 🔄 for recurring) in action cards - Update workflow reducer to handle trigger creation via existing APIs - Fix action parser to recognize trigger config types in comment format - Add async trigger processing using createScheduledJobRule and createRecurringJobRule APIs Users can now ask Copilot to create triggers with natural language requests like: 'Create a daily report trigger at 9 AM' or 'Set up a one-time reminder for next Friday'
- Pass projectId to Messages and AssistantMessage components for better context - Refactor applyAction to handle one-time and recurring triggers with improved error handling - Update handleApplyAll and handleSingleApply to support async action processing - Remove deprecated pending trigger logic from workflow editor This update improves the Copilot's ability to manage triggers and enhances the overall message processing flow.
Keep workflow reducer synchronous by removing trigger jobs from the switch and moving job rule API calls into a dedicated helper in messages.tsx. Cache dynamic imports and guard types so Copilot Apply/Apply All handle trigger creation without touching reducer state.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
9fe2687 to
d484170
Compare
…dit triggers too without losing previous jobs feat: Add update functionality for recurring and scheduled job rules - Implemented update actions for recurring job rules and scheduled job rules, allowing users to modify existing rules with new input and scheduling configurations. - Enhanced the UI components to support editing of job rules, including forms for both creating and updating rules. - Updated the repository interfaces and MongoDB implementations to handle the new update operations for job rules. This update improves the flexibility of managing job rules within the application.
feat: Enhance trigger management in Copilot - Added functionality to search for relevant external triggers using the new `search_relevant_triggers` tool, allowing users to discover available triggers based on toolkit slugs and optional query keywords. - Updated the Copilot context to include detailed descriptions of various external trigger toolkits, enhancing user guidance for trigger creation. - Improved the overall trigger handling process, ensuring that users can effectively integrate external triggers into their workflows. This update significantly enhances the Copilot's capabilities in managing and utilizing external triggers.
feat: Enhance external trigger handling in Copilot - Added support for flexible schemas in external triggers, allowing configuration changes without stripping any data. - Introduced a new `onRequestTriggerSetup` callback in the Action component to facilitate trigger setup requests. - Implemented a modal for trigger configuration, improving user experience when setting up external triggers. - Updated the ComposioTriggerTypesPanel to auto-select trigger types based on initial configuration. This update significantly improves the management and setup of external triggers within the Copilot interface.
feat: Improve external trigger handling in Copilot - Added validation for editing external triggers, ensuring users are informed that existing triggers must be deleted and recreated for changes. - Updated documentation to clarify the limitations of external trigger modifications. This update enhances user experience by providing clear guidance on managing external triggers within the Copilot interface.
feat: Refactor Copilot message handling and trigger actions - Removed deprecated logic for loading scheduled and recurring job actions, streamlining the trigger action process. - Integrated `useCopilotTriggerActions` hook to manage trigger setup and actions more efficiently. - Enhanced parsing of action parts to improve handling of triggers and their configurations. - Updated the UI to reflect changes in action handling, ensuring a smoother user experience. This update optimizes the Copilot's ability to manage triggers and enhances the overall message processing flow.
| const limitedTriggers = filteredTriggers.slice(0, MAX_RESULTS); | ||
| const truncated = filteredTriggers.length > limitedTriggers.length; | ||
|
|
||
| const formattedTriggers = limitedTriggers.map(trigger => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should leave out this filtering? Since we are only going to list trigger types for one toolkit at a time, the LLM should be able to decide what to use based on the user's message. This code-level filtering might filter out something valuable
- Removed unnecessary filtering logic for triggers based on user queries, streamlining the search process. - Updated response messages to clarify the context of displayed triggers, enhancing user understanding. This update improves the efficiency of the trigger search functionality within the Copilot interface.
This reverts commit b3d0416.
feat: Enhance external trigger creation and search functionality in Copilot - Introduced a critical flow for adding external triggers, emphasizing minimal user input and UI configuration. - Updated documentation to clarify the external trigger creation process and provided examples for better guidance. - Simplified the trigger search logic, ensuring users receive relevant results while maintaining clarity in response messages. This update improves the user experience by streamlining external trigger management and enhancing the search capabilities within the Copilot interface.
No description provided.