Get pending items
SDK platic.agents.templateSetup.get()
Check what remains to finish configuring an agent installed from a template. Read setup.slots for each pending item and nextStep for the route that resolves it. Each request checks the agent and marks completed items as done.
Example
curl https://api.platic.ai/v1/agents/$AGENT_ID/template-setup \
-H "Authorization: Bearer $PLATIC_API_KEY" await platic.agents.templateSetup.get("agent_123"); Path parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
agentId | string | Agent id | ✓ |
Response
200 OK
{
"status": "success",
"message": "3 of 4 items done or skipped",
"data": {
"agentId": "Ag6bV8nM1qW3eR5t",
"setup": {
"template": { "slug": "vendedor-de-tienda", "name": "Vendedor de la tienda", "version": 3 },
"status": "in_progress",
"ready": false,
"done": 3,
"total": 4,
"slots": [
{
"id": "negocio",
"kind": "variable",
"label": "Datos del negocio",
"detail": "Horario",
"required": true,
"state": "done",
"variables": [{ "key": "horario", "label": "Horario", "placeholder": "{{horario}}" }],
"openUrl": null
},
{
"id": "tool-shopify",
"kind": "tool",
"label": "Shopify",
"detail": "Conéctala y actívala para este agente",
"required": false,
"state": "done",
"provider": { "type": "mcp", "id": "shopify" },
"openUrl": null
},
{
"id": "canal",
"kind": "channel",
"label": "Canal",
"detail": "WhatsApp",
"required": true,
"state": "pending",
"channels": [{ "id": "whatsapp", "name": "WhatsApp" }],
"openUrl": "https://app.platica.mx/workspace/K7u9rQ2LmZx18BvC5tNd/integrations"
},
{
"id": "conocimiento",
"kind": "knowledge",
"label": "Catálogo",
"detail": "Tu catálogo de productos con precios",
"required": false,
"state": "skipped",
"hint": "Tu catálogo de productos con precios",
"openUrl": null
}
]
}
},
"nextStep": "Canal: connect one of WhatsApp with POST /v1/channels/connections and this agentId, or give this agent an existing channel with PATCH /v1/channels/{channelId}. Each item is marked done when Platica sees it in the agent: check again with GET /v1/agents/Ag6bV8nM1qW3eR5t/template-setup."
} setup is null if the agent doesn't come from a template.
| Field | Description |
|---|---|
agentId | The agent |
setup | The list of pending items, or null. See the list and the pending items |
nextStep | What is missing and which route resolves it, in English |
Errors
| Status | details.code | When |
|---|---|---|
400 | INVALID_REQUEST | agentId isn't a valid id |
403 | FORBIDDEN | Your token only sees your assigned agents and this one isn't yours |
404 | AGENT_NOT_FOUND | The agent doesn't exist in this workspace |
The errors that come up on any operation are in the introduction.
Notes
- If Platica can't read the agent's draft, the business-data pending items stay as they were in the previous read.
- From an AI agent, the tool is
get_agent_template_setup.