feat(Copy.ai): run workflow, get workflow status/output actions and workflow completed trigger#7512
Conversation
|
Important Review skippedAuto reviews are limited to specific labels. 🏷️ Labels to auto review (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Louai-Zokerburg
left a comment
There was a problem hiding this comment.
Note
Didn't test the functionality, just code-style and cleaner-code suggestions
packages/pieces/community/copy-ai/src/lib/actions/get-workflow-run-outputs.ts
Outdated
Show resolved
Hide resolved
packages/pieces/community/copy-ai/src/lib/actions/run-workflow.ts
Outdated
Show resolved
Hide resolved
packages/pieces/community/copy-ai/src/lib/actions/get-workflow-run-outputs.ts
Outdated
Show resolved
Hide resolved
packages/pieces/community/copy-ai/src/lib/actions/get-workflow-run-outputs.ts
Outdated
Show resolved
Hide resolved
packages/pieces/community/copy-ai/src/lib/actions/get-workflow-run-status.ts
Outdated
Show resolved
Hide resolved
Louai-Zokerburg
left a comment
There was a problem hiding this comment.
Note
Didn't test the functionality, just code-style and cleaner-code suggestions
|
Thanks for the PR, @AnkitSharmaOnGithub . I’ll review it this week. |
@kishanprmr I am marking this PR as draft. I have not yet to get the API key for testing the complete flow & make the video. Request you to please react to this message, so that I know you have seen it. Will react out again, otherwise. Reference - #7489 (comment) |
|
@AnkitSharmaOnGithub got it. Ash will reply soon with the API key for Copy.ai. |
- update copy.ai integration to use a unified request method and enhance workflow actions - replaced the `copyaiclient` with a `makerequest` function for cleaner api calls. - added `workflowid` property to `getworkflowrunoutputs` and `getworkflowrunstatus` actions. - updated the workflow run actions to correctly format api endpoints. - enhanced the webhook trigger description and removed unnecessary webhook management code.
|
@ashrafsamhouri @kishanprmr I have completed the piece & this PR is ready for review. |
|
@AnkitSharmaOnGithub I will review it this week. Thanks !! |
|
View your CI Pipeline Execution ↗ for commit 9d3ba58. ☁️ Nx Cloud last updated this comment at |
|
Thank you for your awesome contribution! 🎉 |
What does this PR do?
This PR will add the Copy.ai ActivePiece to enable users to run and monitor Copy.ai workflows via the ActivePieces platform.
/claim #7489
Explain How the Feature Works
The Copy.ai piece enables interaction with Copy.ai’s public API within ActivePieces, allowing users to automate AI content workflows. It includes:
Run Workflow (Write Action): Triggers a predefined Copy.ai workflow by submitting required inputs. The piece waits for completion and can pass the result to subsequent steps.
Get Workflow Run Status (Search Action): Sends a request to the Copy.ai API to check whether a specific workflow run is still processing, completed successfully, or failed.
Get Workflow Run Outputs (Search Action): Once a workflow run completes, this action retrieves the final output
Workflow Run Completed (Trigger): Sets up a webhook listener that activates when Copy.ai completes the workflow execution. The resulting data is emitted and passed to the next step in the automation chain.
[Video Link] https://ankit-sh.notion.site/Active-Pieces-Demo-Video-1eb4889285338097bf7fc32422de3f57?pvs=4
Fixes #7489