Commit graph

391 commits

Author SHA1 Message Date
Ramnique Singh
476654af80
Feature/copilot trigger creation (#274)
* feat: Add Copilot trigger creation support

- 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'

* feat: Enhance Copilot message handling and trigger actions

- 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.

* refactor: route trigger actions via copilot helper

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.

* feat: Add current time to the copilot context

* added conext of triggers to the copilot along with being able to edit and delete triggers

* bug fix for deleting composio triggers

* Add the edit function that allows editing triggers and lets copilot edit 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.

* Add trigger context to copilot
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.

* Let copilot add 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.

* External trigger cant be edited so we delete and recreate for this
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.

* preventing message.tsx from ballooning up in size
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.

* refactor: Simplify trigger filtering in Copilot

- 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.

* Revert "refactor: Simplify trigger filtering in Copilot"

This reverts commit b3d041677c.

* simplify the filtering logic for triggers in copilot
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.

---------

Co-authored-by: tusharmagar <tushmag@gmail.com>
2025-10-16 14:33:56 +08:00
akhisud3195
496dd03016 Hide community cards behind feature flag 2025-09-17 13:48:07 +04:00
akhisud3195
6935196905 Fix copy URL bug 2025-09-16 22:40:00 +04:00
akhisud3195
2a1143c833 Read prebuilt templates from code directly 2025-09-16 15:53:37 +04:00
Ramnique Singh
726559de76
Merge pull request #264 from rowboatlabs/fix_image_fr
moved generate_image from being attached to the workflow
2025-09-16 17:15:22 +05:30
arkml
c43beace9c added image icon 2025-09-16 17:09:33 +05:30
arkml
d8c99ab4c3 fixed font and transparency 2025-09-16 17:07:16 +05:30
arkml
48c32d37dc moved generate_image from being attached to the workflow 2025-09-16 16:22:06 +05:30
akhisud3195
af3adc797f Fix library templates db syncing and pagination issues 2025-09-16 14:32:11 +04:00
akhisud3195
1072c8836c Enable redaction for community-published workflows 2025-09-16 00:45:11 +04:00
akhisud3195
8a86b892d0 Update templates and publishing to use server-side auth + fix likes-related glitches 2025-09-16 00:35:02 +04:00
arkml
041ab25b7b
remove url from share and add auth (#260) 2025-09-15 23:44:01 +05:30
arkml
14fd7214c5
moved workflow sharing from api to server side actions (#257) 2025-09-15 19:56:01 +04:00
Akhilesh Sudhakar
be4e17b5a5
Community cards and prebuilt cards (#258)
* Add community sharing feature and merge with pre-built templates

* Add warning before publishing

* [Untested] Add delete flow for community cards

* Fix bug with sorting by likes count and update design of cards

* Fix community assistant parsing errors

* Remove all as a type filter

* Remove default assistant name for publishing to community

* Update DB calls to be standardized paginated
2025-09-15 19:53:35 +04:00
arkml
62c1230cff remove + more tools option from toolkit in tools view 2025-09-15 17:17:22 +05:30
Tushar
66b6629abb
Add eisenhower email organiser (#253)
* feat: add Eisenhower Email Organiser prebuilt card

- Added new eisenhower-email-organiser.json prebuilt workflow template
- Updated index.ts to include the new template in exports
- Template helps users organize emails using the Eisenhower Matrix (urgent/important quadrants)

* fix: update to American spelling - organizer instead of organiser

- Updated import statement to use 'eisenhower-email-organizer.json'
- Updated export key to 'Eisenhower Email Organizer'
- Maintains consistency with American English throughout the codebase

* change name of Tweet Assistant

* fix: remove duplicate file and fix American spelling in description

- Removed duplicate eisenhower-email-organiser.json (British spelling)
- Fixed description in eisenhower-email-organizer.json: 'Organises' → 'Organizes'
- Now only one file exists with consistent American spelling throughout

* fix: update Support category header in prebuilt cards UI

- Changed 'Customer Support' to 'Support' in build-assistant-section.tsx
- Now matches the category field in customer-support.json
- Ensures Support section displays properly in the prebuilt cards UI
2025-09-15 14:31:06 +05:30
arkml
08c0879b78
remove example box and examples from copilot (#254)
* remove example box and examples from copilot

* removed example field from prebuilt jsons
2025-09-15 14:29:22 +05:30
arkml
432ad47b30 remove one of the preset copilot prompts in the new assistant section 2025-09-13 13:17:09 +05:30
arkml
c41e65d7a5 copilot prompt for prebuilt cards can be configured per card 2025-09-13 13:10:01 +05:30
akhisud3195
417fa890a6 Show chat pane when starting with pre-built agent template 2025-09-12 21:52:38 +04:00
akhisud3195
aed8377a8e Make greeting message have start agent name 2025-09-12 21:46:06 +04:00
akhisud3195
96886d3f20 Add entity_list plus button checks for live mode 2025-09-12 21:39:17 +04:00
arkml
458302fc43
Small improvements 4 (#247)
* removed Publish from progress bar

* removed publish tour related code

* make chat correctly in tours

* fixed use step completion
2025-09-12 17:36:57 +05:30
arkml
64a6cffe9c
Copilot2 (#246)
* added customer support example

* fixed twitter sentiment prebuilt card

* make variable section open by default
2025-09-12 16:11:34 +05:30
akhisud3195
a68ae56787 Fix copilot compose box showing in agent instructions expanded view 2025-09-12 13:42:37 +04:00
akhisud3195
3dc7a6783b Add typing ellipsis to playground 2025-09-12 13:33:39 +04:00
akhisud3195
3b2d8a4fb5 Fix indentation of user-facing agent messages 2025-09-12 13:28:17 +04:00
akhisud3195
1d3e3bb76e Fix content disappearance upon viewmode toggle 2025-09-12 13:20:28 +04:00
akhisud3195
168b01ca70 Add auto-publish flow 2025-09-12 13:11:22 +04:00
tusharmagar
b430c0cf15 Changed the Three Pane SVG Icon 2025-09-12 13:04:06 +05:30
Akhilesh Sudhakar
ee02d61996
Add options to hide panes (#244)
* Add multiple pane views

* Fix rendering issues

* Fix copilot apply selection pane error and remove old debug logs

* Make top bar more compact

* Fix copilot generation from starting prompt

* Fix panel resizing issues

* Fix content preservation upon hiding panes

* Added changes on top of pane_layouts branch to remove example agent from the workflow editor

* Grey out options for changing pane layout during zero agents state

* Add zero-agent state for playground and publish buttons

* Fix pane sizes and bugs

---------

Co-authored-by: tusharmagar <tushmag@gmail.com>
2025-09-12 00:37:44 +04:00
arkml
c2002e6c63
Prebuilt3 (#242)
* added Twitter sentiment agent

* Twitter assistants

* added subtext for prebuilt

* added customer support prebuilt
2025-09-12 00:42:57 +05:30
arkml
1aaf5929f8
added ability to share workflows (#240) 2025-09-11 21:47:32 +05:30
arkml
5efdee18eb
Tool mentions (#239)
* disable click for invalid tools

* handle variables as mentions in the editor

* delete tools persist immediately

* deleting tools in live view shows the same warning and option to switch to draft
2025-09-11 20:50:47 +05:30
arkml
158777b045
Image (#238)
* added image tool

* show image in playground

* store images in Redis

* new images use unique urls

* moved from redis to s3 for image urls

* removed unnecessary changes

* removed the bubble around assistant messages

* added a download button on hover on image

* increased image size and removed border

* revert the bubbes for the assistant messages
2025-09-11 20:50:20 +05:30
arkml
af0fcce127 make workflow mode sticky across navigation 2025-09-11 15:56:23 +05:30
arkml
b3bd89a478 added note about publishing to triggers 2025-09-11 15:40:45 +05:30
arkml
63e95cf853
Prebuilt cards sections (#237)
* add spinner to pre-built cards

* added subsections for prebuilt

* added section name styling

* added news section and reddit to slack workflow
2025-09-09 23:53:34 +05:30
arkml
13051dbf3a added a explain prompt to the copilot when you click on prebuilt cards 2025-09-09 13:51:16 +05:30
arkml
04c505979f for import and pre-built mark the build step as completed in the progress bar 2025-09-08 23:01:50 +05:30
arkml
4193ed57f0 update placeholder text for copilot 2025-09-08 22:49:59 +05:30
arkml
86a33994b9 simplified the new assistant text box 2025-09-08 22:16:47 +05:30
Tushar
a0734f7013
Prebuiltcards (#233)
* Add prebuilt cards functionality and related changes

* removed old jsons (still need to update the existing ones too)

* Refactor project templates to remove the Example Agent and update related documentation. Updated the copilot behaviour aswell.

* Merge remote-tracking branch 'origin/dev' into prebuiltcards

* Update SHOW_PREBUILT_CARDS logic to use environment variable for better configuration management
2025-09-08 21:22:35 +05:30
arkml
9a60a03217 protect against localstrorage error 2025-09-08 14:07:39 +05:30
arkml
f772088e90
Trigger changes (#232)
* new external trigger page is shown if no external triggers are setup yet

* make one time trigger default to new trigger

* default to new trigger in recurring triggers

* remove back button if no triggers are setup yet
2025-09-07 19:15:16 +05:30
arkml
d899966107
Progressbar (#231)
* added basic progress bar

* step 1 turns green when any agent instructio is changed

* step 2 is done after playground chat

* step 3 turns green on publish

* step 4 turns green on use assistant

* step 1 turns green on copilot changes too

* reduced font size of the live workflow warning

* better hover texts for steps

* change progress bar style

* better tool tips

* reverted styling of use assistant button

* chat with assistant option collapses the left pane

* remove hide left panel button

* made progress bar hover text more prominent

* add labels to progress bar

* added tour for build

* added tour for test

* added tour for publish

* added tour for use step

* added tool tip for each step to click for tour

* refined wording in product tours

* added jobs and conversations to the product tour
2025-09-07 19:12:50 +05:30
arkml
c793f0a344 minor changes to how this tool runs section 2025-09-05 15:18:33 +05:30
arkml
dbd0751ad9 removed in-line more tools button 2025-09-05 14:50:53 +05:30
Akhilesh Sudhakar
122d83d8f7
Merge copilot and playground into single pane and prevent edits in live mode
* Display copilot and playground as toggles

* Auto-switch live mode to draft mode when changes are made to workflow or build mode is toggled on

* Show playground / copilot alongside entity config in 3-pane

* Make tool params non-bold

* Fix panel resizing issues

* Fix logic around transitions back to draft mode from live mode

* Change test to chat in the toggle

* Fix workflow consistency issues while switching between live and draft modes
2025-09-04 11:05:43 +04:00
arkml
3d36884c73
Small improvements (#228)
* make the start tag for all agents the same

* remove scroll from the my assistants page
2025-09-02 22:09:09 +05:30