Skip to main content
POST
/
agents
/
generate
Python
from datagrid_ai import Datagrid

client = Datagrid()
response = client.agents.generate(
    prompt="prompt",
)
print(response.id)
{
  "id": "<string>",
  "title": "<string>",
  "description": "<string>",
  "emoji": "<string>",
  "prompt_examples": [
    "<string>"
  ],
  "config": {
    "prompt": "<string>",
    "custom_prompt": "<string>",
    "tools": [
      {
        "tool": "<string>"
      }
    ]
  },
  "claim_token": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "category": "<string>",
  "connectors": [
    {}
  ]
}

Body

application/json
prompt
string
required

Natural language description of the agent you want. e.g. "I want an agent that helps my sales team answer product questions and draft follow-up emails."

Maximum string length: 2000

Response

Generated agent template with a claim token

id
string
required
title
string
required
description
string
required
emoji
string
required
prompt_examples
string[]
required
config
object
required
claim_token
string<uuid>
required

One-time token to create this agent in your account after signing up. Pass to POST /agents/claim. Expires after 7 days.

category
string
connectors
object[]