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

await platic.agents.templateSetup.get("agent_123");

Path parameters

ParameterTypeDescriptionRequired
agentIdstringAgent 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.

FieldDescription
agentIdThe agent
setupThe list of pending items, or null. See the list and the pending items
nextStepWhat is missing and which route resolves it, in English

Errors

Statusdetails.codeWhen
400INVALID_REQUESTagentId isn't a valid id
403FORBIDDENYour token only sees your assigned agents and this one isn't yours
404AGENT_NOT_FOUNDThe 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.