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
GRAPH_GENERATION: Creates agent workflow graph
TOOL_MATCHING: Matches existing tools to agent needs
TOOL_GENERATION: Generates new custom tools if needed
TOOL_INTEGRATION: Integrates selected tools with the agent
UPDATE_AGENT: Finalizes and updates the agent configuration
Note: Use /agent-context first to get threadId, then /agent-creation to create the agent and get agentId before using this endpoint.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
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.
"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"
]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.