agent_id to Converse.
This guide walks through creating an agent, configuring it, and running it. For the full field reference, see the Agents API reference.
Before you begin
Make sure you have an API key and an SDK installed. See the Quickstart if you haven’t set those up yet.Create your first agent
Every field onPOST /agents is optional, so the smallest useful agent is just a name and some instructions.
Agent object. Keep its id — you’ll pass it to Converse to run the agent.
Configure instructions
Agents have three instruction fields, each with a distinct purpose:Add knowledge with corpus
By default an agent can use all knowledge your organization or teamspace can access. To scope it to specific sources, pass a corpus array. Each item is either a knowledge base or a page.
Enable tools
Tools let an agent do more than answer from knowledge — search the web, analyze data, extract from documents, and more. Pass atools array of tool names. If you omit tools, a default set is used; passing [] disables all tools.
disabled_tools to remove specific tools from the default set.
Generate an agent from natural language
Instead of authoring fields by hand, you can describe the agent you want and get a suggested configuration back. This is a three-step flow:- Generate a template from a prompt (
POST /agents/generate). - Claim the template with the returned token to retrieve its config (
POST /agents/claim). - Create the agent from the template fields (
POST /agents).
agents.generate returns a claim_token that expires after 7 days. Claiming retrieves the template — it does not create the agent, so you still call agents.create to persist it.The generate response lists tools as
{ "tool": "<name>" } objects, while agents.create expects tool names (strings). Map them as shown above (t.tool / t => t.tool).Run your agent
Pass the agent’sid as agent_id on a Converse call. The agent’s stored instructions, corpus, and tools are applied automatically.
config on the Converse call — this does not change the stored agent.
Update and delete
Update an agent with the same fields you used to create it (a partial update — only the fields you pass change):Next steps
- Getting started with Converse — the endpoint you use to run agents.
- Knowledge and corpus — scope what your agent can read.
- Agents API reference — every field and endpoint.