Propose an AI agent from a description
POST /ai_agents/actions/propose
/ai_agents/actions/proposeTurns a description into a proposal of agent: name, description, icon, instructions, tools and limits. THE PROPOSAL IS NOT SAVED: nothing is created. It has the same keys as the body of create_ai_agent, so it can be sent there as it is, or after changing it.
The proposal is cleaned before it is returned: it only has tools that exist, with valid values, and never connects anything or uploads files. If the description needs something the account cannot do (for example, writing to an external app), the answer says so in warnings and leaves it out.
When to use: When the user describes an agent in words and you want a good starting definition («create an agent that researches the companies from the form»). Then show it to the user, create it with create_ai_agent and, once tried, publish it.
When not to use: To save an agent whose definition you already know, use create_ai_agent directly. To improve an existing agent, read it with get_ai_agent and change it with update_ai_agent; this operation always starts from scratch. Do not call it again just to get a different wording: every call is charged.
Side effects: IT SPENDS AI BALANCE: one AI call, charged to the shared balance of the account (and to the cap of agents, if there is one) and shown as authoring help in the breakdown of the period. The balance is checked before the call. A call that fails is not charged. Nothing else changes.
Permissions: Requires the automations.manage capability. It also needs AI in the plan (maia.access). The account must also have CRM Pro.
Value for the X-Auth-Token header parameter.
In: header
The new AiAgentProposal resource
TypeScript Definitions
Use the request body type in TypeScript.
propose_ai_agent (ADR-0195): a proposal of agent from a description, never saved. Generated from the approved proposal (2026-11-16) by trabajo/2026-11-15-agentes-ia/fase-4-api-publica/tools/gen_ai_agents_api.py;
the texts are the proposal's, with the deviations the code imposes (notas.md § 10).
A POST that answers 200: it creates nothing, so the proposal has no identifier.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://api.easymailing.com/ai_agents/actions/propose" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "description": "string" }'{ "name": "string", "description": "string", "icon": "string", "draft": {}, "access": "team", "warnings": [ {} ], "spent": {}}