JustPaid Workflows
AI & Automation

AI Copilot

Build and modify workflows using natural language commands

The AI Copilot is your in-editor assistant for building and modifying workflows. It understands your canvas context -- the blocks, connections, and data flow -- and can add blocks, configure settings, wire data references, and suggest improvements, all from natural language instructions.

What the Copilot Can Do

Build workflows from descriptions. Tell the copilot what you want to automate and it will create the workflow structure, add the right blocks, and wire the connections.

Modify existing workflows. Ask it to add a condition, change a trigger, add error handling, or restructure the flow. It operates on your current canvas.

Answer questions. Ask about block configuration, data flow, best practices, or how to achieve a specific automation pattern. The copilot has access to the full documentation.

Debug issues. Describe a problem with your workflow and the copilot will analyze the configuration, identify likely causes, and suggest fixes.

Example Prompts

Building

Create a workflow that triggers when a Stripe invoice is paid,
looks up the customer in Salesforce, and sends a Slack notification
to #finance with the invoice details.
Add an approval step before the QuickBooks invoice creation.
Route to the #finance-approvals Slack channel for amounts over $5000.

Configuring

Change the agent block to use Claude Opus 4.6 instead of Sonnet.
Set temperature to 0 and add an output schema for invoice extraction.
Add retry logic to the Stripe block -- 3 attempts with exponential backoff.

Debugging

The workflow is failing at the transform step. The Salesforce response
has the customer email nested under Account.PersonEmail but the
transform is looking for contact.email. Fix the mapping.

Querying

What's the best way to handle partial payments in a Stripe workflow?
How do I pass data from the webhook trigger to a downstream agent block?

How It Works

The copilot operates within the workflow editor. It has access to:

  1. Your current canvas -- All blocks, their configurations, connections, and data flow
  2. Block registry -- All 29 available block types and their configuration options
  3. Integration schemas -- Available actions and parameters for each integration
  4. Documentation -- Full JustPaid Workflow Studio documentation

When you ask the copilot to make changes, it generates a set of canvas operations (add block, remove block, update config, add edge, remove edge) that are applied to your workflow. You can review and undo any changes.

Copilot Tools

The copilot has access to specialized tools for workflow manipulation:

ToolDescription
Add BlockPlace a new block on the canvas with initial configuration
Update BlockModify a block's configuration (prompts, actions, conditions)
Remove BlockDelete a block and its connections
Add EdgeConnect two blocks with a data flow edge
Remove EdgeDisconnect two blocks
Read CanvasInspect the current workflow structure
Search DocsLook up documentation for blocks, integrations, and patterns

Tips for Effective Prompting

  • Be specific about what you want. Instead of "make it better," say "add error handling to the Stripe block with 3 retries and exponential backoff."

  • Reference blocks by name or type. "Change the agent block" is clearer than "change the AI thing."

  • Describe the data flow. When building from scratch, mention where data comes from and where it should go: "when a Stripe payment is received, look up the customer in Salesforce by email, then send a Slack message."

  • Ask one thing at a time. Complex requests work better as a sequence of smaller instructions.

  • Use the copilot for exploration. Not sure which block to use? Ask "what's the best way to handle X?" before asking it to build.

The copilot operates on your draft canvas. Changes are not saved until you explicitly save or deploy the workflow.

Frequently Asked Questions

On this page