Skip to content

Build with AI (MCP)

Connect Claude, Cursor or any MCP client to your Agentim account with one command, and let your AI build, test and manage your chatbots safely.

What it is#

The Agentim MCP server connects an AI assistant to your Agentim account. MCP (Model Context Protocol) is the open standard AI apps use to call tools, so it works with Claude Code, Claude Desktop, Cursor and other MCP clients.

Instead of asking your AI to write a bot from scratch, you ask it to build inside Agentim. It works with the same building blocks as the dashboard, and Agentim enforces the rules: drafts, permissions, limits and an audit log. You open the same bot in the dashboard and see every change.

  1. Your AI assistant

    Claude, Cursor...

  2. Agentim MCP server

    Your API key

  3. Your bot's draft

    Chat Builder canvas

Your AI assistant talks to the Agentim MCP server, which edits your bot's draft through the Agentim API.

What your AI can do#

AreaWhat it covers
ChatbotsRead, create and edit bots step by step, settings, bot messages, templates, folders and versions; check a flow with Flow Doctor; run tests in preview
AI flowsBuild and edit AI flows with every node type, manage drafts and versions, and add knowledge from files and website pages
ChannelsSee which chatbot answers each channel, incoming messages and connection health
IntegrationsGoogle Sheets and Calendar, Make, WhatsApp templates, HTTP step secrets and Catch Hook tests
AccountPlan usage, AI credits and their limits, and your own AI keys' status
ConversationsLogs, customers and human mode status, with personal data masked by default

Some things stay in the dashboard on purpose: connecting WhatsApp, Google and Make sign-in, API keys, team invites and billing. No tool messages your customers.

Safety model#

  • Draft first. Every change goes to the bot's draft. Customers keep talking to your live bot until you publish. For new work the AI creates a new bot, so your live one is never touched.
  • Scoped keys. Each API key gets only the access you grant in Developers › API, for example Read chatbots, Edit chatbot drafts and Run tests. A key can never widen its own access.
  • Customer-facing changes need you. Publishing, rolling back, deleting and other changes customers would see right away need a scope you grant and your explicit OK in the chat.
  • No silent overwrites. If the bot changed since the AI last read it, the change is refused and the AI reads it again. A retried change is never applied twice.
  • Every change logged. Each write is recorded in an audit log: what changed, which key made it, and when.
  • Secrets stay out of the chat. Tokens and keys inside steps are never shown back. Your own AI provider key is saved in the dashboard, not through the AI.
  • Personal data masked. Phone numbers, emails and names in conversations are hidden unless the key has the scope to see them.

Set it up#

  1. 1

    Create an API key

    In the app, open Developers › API. On the Keys tab, click Create key and name it after the AI app that will use it, for example Claude Code.

  2. 2

    Choose Build drafts (MCP)

    Under What can this key do?, click the Build drafts (MCP) quick choice. It lets the AI read chatbots and AI flows, edit their drafts and run tests in preview, but not publish. Add more access later only if you need it.

  3. 3

    Copy the key

    Click Create key, then copy it from Copy your new key. You won't see it again. If you lose it, rotate the key.

  4. 4

    Set limits (optional)

    Next to the key's name, open its limits to cap its monthly AI credits and requests per minute, or allow only some chatbots. See Developers.

  5. 5

    Connect your AI app

    Use the command or config for your app below. Agentim hosts the server at https://mcp.agentim.ai/mcp, so there is nothing to install on the server side. Keep the key in your app's config on your own computer, never in shared files or repos.

Claude Code. One command, once:

Claude Code
claude mcp add --transport http --scope user agentim https://mcp.agentim.ai/mcp \
  --header "Authorization: Bearer YOUR_API_KEY"

Cursor. Add the server to .cursor/mcp.json (or ~/.cursor/mcp.json for every project):

mcp.json
{
  "mcpServers": {
    "agentim": {
      "url": "https://mcp.agentim.ai/mcp",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}

Claude Desktop. Edit ~/Library/Application Support/Claude/claude_desktop_config.json on macOS (%APPDATA%\Claude\claude_desktop_config.json on Windows), then restart Claude. It connects through mcp-remote, which needs Node.js:

claude_desktop_config.json
{
  "mcpServers": {
    "agentim": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.agentim.ai/mcp", "--header", "Authorization:${AGENTIM_AUTH}"],
      "env": { "AGENTIM_AUTH": "Bearer YOUR_API_KEY" }
    }
  }
}

Replace YOUR_API_KEY with your key. To check the connection, ask your AI: What can my Agentim key do?

Example prompts#

  • "List my Agentim bots and tell me which one is live."
  • "Build a lead bot for my dental clinic: ask for the name, offer two buttons, Book a visit and Just a question, and hand Just a question to my AI agent."
  • "Build an AI flow that answers from my website, mysite.com, and check each answer against the site before it's sent."
  • "In my Support bot, add a question that asks for the order number after the Track my order button."
  • "Tidy up the canvas of my Lead bot, check it for errors and run a test as a customer named Noa."

Good habits: ask the AI to read the bot before changing it, and to finish with auto-arrange, a check and a test. Review the draft in the dashboard, then publish there yourself.

Limitations#

  • WhatsApp limits apply. Buttons steps take 1 to 3 buttons of up to 20 characters. Options steps take up to 30 options.
  • One preview at a time. Tests use your account's preview, the same as the Preview button, so a test replaces whatever you last previewed.
  • Keep one editor at a time. If the same bot is open in the dashboard while your AI edits it, the dashboard's autosave can overwrite the AI's changes (and the other way round). Close the bot in the dashboard, or reload it after the AI is done.
  • Rate limits. Each key can make up to 120 changes a minute and 30 tests every 10 minutes. When a limit is hit, the AI is told how long to wait.