Skip to main content

Cursor Actions

Execute Cursor Cloud Agent tasks from your SmartFlow workflows. Launch AI coding agents, monitor their progress, add follow-up instructions, and manage agent lifecycle — all from automated workflows.


Prerequisites


Available Actions

Launch Coding Agent

Start a new Cursor Cloud Agent to perform a coding task on a GitHub repository.

ParameterRequiredTypeDescription
RepositoryYesTextGitHub repository URL or name (e.g., owner/repo)
Task DescriptionYesTextareaDescribe what the agent should do
BranchNoTextGit branch or ref to work on (default: main)
ModelNoTextAI model to use for the agent
Auto-create PRNoBooleanAutomatically create a pull request when done (default: true)
Branch NameNoTextCustom branch name for the pull request

Output Variables:

VariableDescription
agentIdID of the launched agent
statusCurrent status of the agent
repositoryRepository the agent is working on

Add Followup

Send additional instructions to a running coding agent.

ParameterRequiredTypeDescription
Agent IDYesTextID of the agent to add followup to
Followup PromptYesTextareaAdditional instruction for the agent

Output Variables:

VariableDescription
agentIdID of the agent

Get Agent Status

Check the detailed status and progress of a coding agent.

ParameterRequiredTypeDescription
Agent IDYesTextID of the agent to check

Output Variables:

VariableDescription
agentIdID of the agent
statusCurrent status: RUNNING, COMPLETED, FAILED, CREATING, or CANCELLED
summarySummary of the agent's work
prUrlURL to the pull request (if created)
createdAtWhen the agent was created

Delete Agent

Delete a coding agent and clean up its resources.

ParameterRequiredTypeDescription
Agent IDYesTextID of the agent to delete

Output Variables:

VariableDescription
agentIdID of the deleted agent

Agent Status Values

StatusDescription
CREATINGAgent is being initialized
RUNNINGAgent is actively working on the task
COMPLETEDAgent has finished its work
FAILEDAgent encountered an error
CANCELLEDAgent was cancelled

Workflow Examples

Auto-Fix Bug Reports

Trigger: Chat Service (when user reports a bug)
Actions:
1. AI Request:
Prompt: "Extract the repository name and bug description"
Input: {{message}}
2. Cursor Launch Agent:
Repository: {{repository}}
Task: "Fix this bug: {{bug_description}}"
Auto-create PR: true
3. Send Message:
Text: "I've launched a coding agent. I'll notify you when the PR is ready."

Launch and Monitor

Trigger: Conversation Tool
Actions:
1. Cursor Launch Agent:
Repository: my-org/my-app
Task: {{user_instruction}}
Auto-create PR: true
2. Cursor Get Agent Status:
Agent ID: {{agentId}}
3. Send Message:
Text: "Agent status: {{status}}. PR: {{prUrl}}"

Iterative Agent with Followup

Trigger: Conversation Tool
Actions:
1. Cursor Launch Agent:
Repository: my-org/my-app
Task: "Implement the initial feature"
2. Cursor Add Followup:
Agent ID: {{agentId}}
Followup: "Also add unit tests for the new feature"

Setup

  1. Go to IntegrationsCursor Cloud Agents
  2. Configure your API key (setup guide)
  3. Sync your repositories
  4. Cursor actions appear in the SmartFlow Node Library under Connectors

Ready to elevate your
user experience?

Deploy AI assistants that delight customers and scale with your business.

GDPR Compliant