Process agent setup steps
Multi-step agent configuration endpoint. Use this after agent creation (via /agent-context and /agent-creation).
GENERATE_SOP: Generates Standard Operating Procedures for the agent
- Required: agentId, query
- Returns: nextStep (GRAPH_GENERATION)
GRAPH_GENERATION: Creates agent workflow graph
- Required: agentId
- Returns: nextStep (TOOL_MATCHING)
TOOL_MATCHING: Matches existing tools to agent needs
- Required: agentId
- Returns: nextStep (TOOL_GENERATION)
TOOL_GENERATION: Generates new custom tools if needed
- Required: agentId
- Returns: nextStep (TOOL_INTEGRATION)
TOOL_INTEGRATION: Integrates selected tools with the agent
- Required: agentId
- Returns: nextStep (UPDATE_AGENT)
UPDATE_AGENT: Finalizes and updates the agent configuration
- Required: agentId
- Returns: nextStep (AGENT_UPDATED)
Note: Use /agent-context first to get threadId, then /agent-creation to create the agent and get agentId before using this endpoint.
Authorizations
Headers
Body
UUID of the agent. Required for all setup steps (GENERATE_SOP and onwards) to identify which agent is being configured.
"f47ac10b-58cc-4372-a567-0e02b2c3d479"
Current step in the agent setup workflow. Use /agent-context and /agent-creation first, then use this endpoint for the remaining steps:
• GENERATE_SOP - Generate Standard Operating Procedures for the agent (requires query) • GRAPH_GENERATION - Create the agent's workflow graph • TOOL_MATCHING - Match existing tools to the agent's needs • TOOL_GENERATION - Generate new custom tools if needed • TOOL_INTEGRATION - Integrate selected tools with the agent • UPDATE_AGENT - Finalize and update the agent configuration • AGENT_UPDATED - Confirmation that setup is complete
GENERATE_SOP, GRAPH_GENERATION, TOOL_MATCHING, TOOL_GENERATION, TOOL_INTEGRATION, UPDATE_AGENT, AGENT_UPDATED, CREATE_TASK "GENERATE_SOP"
User input or instructions for the current setup step. Use this to provide context about what the agent should do, describe its purpose, or give feedback during the setup process.
50000"I want to create an agent that helps users with customer support inquiries"
Array of context file UUIDs to attach to the agent. These files provide additional knowledge or reference materials that the agent can use when processing requests.
[
"a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"b2c3d4e5-f6a7-8901-bcde-f12345678901"
]Response
Agent setup step processed successfully. Response structure varies by step (see operation description).
The next step in the agent setup workflow. Use this value to determine which step to call next.
GENERATE_SOP, GRAPH_GENERATION, TOOL_MATCHING, TOOL_GENERATION, TOOL_INTEGRATION, UPDATE_AGENT, AGENT_UPDATED, CREATE_TASK "SOP_GENERATION"
Agent creation response containing the created agent details and associated context files.