Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/Make scenario building/Ai-agents
Reference · Make scenario building

Ai-agents

Part of Make scenario building. Install the skill and your agent reads this page when it needs the depth.

AI agents in a scenario

When an agent, and when not

The step needs Use
The same output for the same input — sync, transform, notify ordinary modules, filters, if-else
AI-generated content with fixed parameters — summarize, translate, classify into known labels an AI provider's own module (OpenAI, Anthropic, Make AI Tools)
Judgment over which of several tools to use, how often, with what arguments ai-local-agent:RunLocalAIAgent

An agent is non-deterministic, slower and costlier than the alternatives; choose tasks you would trust an intern with. It only knows its training data — live or account-specific information (weather, inventory, a CRM record) reaches it only through a tool; without one it guesses or refuses.

The agent module

ai-local-agent:RunLocalAIAgent (confirm the version with module_spec). Its connection is the AI provider (parameters.makeConnectionId — Make AI Provider, OpenAI, Anthropic, Gemini, and others; reuse from connection.existing). The provider is locked once the agent exists. config.mapper:

The agent emits one output bundle per run regardless of how many tools it called. Knowledge files and MCP-server tools are configured in the Make UI, not here.

Tools are arms

Each tool is a nested flow hanging off the agent: its first module carries parent: {moduleId: <agent id>, kind: "tool", index, label, description}. label is the tool's name (required — it is what the agent calls), description is what tells the agent when to use it; write both the way you would for any tool-calling model.

Inside the tool's flow, a field the agent should fill at run time maps to the agent's id:

{ "id": 5, "module": "weather:ActionGetCurrentWeather", "version": 1,
  "parent": { "moduleId": 2, "kind": "tool", "index": 0, "label": "Get current weather",
              "description": "Returns current weather for a city. Use when the user asks about weather." },
  "config": {
    "mapper": { "type": "name", "city": "{{2.city}}" },
    "restore": { "expect": { "city": { "extra": { "aiHelp": "City name, e.g. London, UK.",
                                                   "aiInstruction": "Take the city from the user's message." } } } }
  } }

Replying to the caller

A webhook-triggered agent scenario whose caller expects the answer in the HTTP response must end with gateway:WebhookRespond mapping the agent's output — ReturnData never reaches a webhook caller.

The complete call is in ai-agent-with-tool.json.

<!-- Modified by Automation Skills on 2026-11-24: relative links to files that were not copied now point to the original repository. -->

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.