# For chatbot and AI agent builders

**Who it is for:** you build chatbots or AI agents —with your own code, with a framework or from Claude, Codex or Cursor— and you want them to run a real business: answer on WhatsApp, read and write the CRM, book appointments and ask for permission before doing something that cannot be undone.

**What you can build today:**

- **Give your agent Meteor's tools** through the remote MCP server. The catalog of `met_*` tools is filtered by the permissions of your key or of your sign-in: what it cannot do, your agent doesn't even see.
- **Run a Met through the API** (a Run), pick which one, give it memory and read the result whole or live over SSE.
- **Message a contact on WhatsApp**, read and update their record and tag them.
- **Look up free slots and book**, reschedule or cancel appointments.
- **Add your own system's actions** by registering your MCP server as a custom connector for your Mets.
- **Know what is waiting for a person**: the actions a Met doesn't take on its own —charging, invoicing, publishing, spending ad budget— and how they ended.

## Two ways to connect your agent

| If… | Use | Start at |
|---|---|---|
| your agent decides what to do and needs tools | Meteor's MCP server | [MCP server](../../mcp.html) |
| your code decides and Meteor runs a Met | The REST API or the SDK (`runs.create`) | [Run Mets](run-mets.html) |

Do you build your agent with LangChain, the OpenAI Agents SDK or the Vercel AI SDK? [Use Meteor from your agent framework](agent-frameworks.html) has the connection and a copyable example for each one.

Both reach the same place. Whatever has no tool of its own in the MCP is still reachable through three generic tools that call any operation of the public API. If you are still deciding which part an agent solves and which part a flow, read [How to build an AI agent](build-an-ai-agent.html) and [Architecture: when a flow, when a Met](architecture-flows-and-mets.html) first.

## The path, in six steps

1. **Get a read-only test key.** A `met_test_` key blocks sending and external actions, but not writes to your workspace: while you explore, issue it without `:write` scopes. See [what test mode does and does not do](authentication.html#what-test-mode-does-and-does-not-do).
2. **Connect your agent.** Through MCP with your client or your own agent, or by running a Met through the API with its answer streamed live. See [MCP server](../../mcp.html), [Use Meteor from your agent framework](agent-frameworks.html), [Run Mets](run-mets.html) and [Streaming](streaming.html).
3. **Give it the channel and the CRM.** WhatsApp messages, records, tags and the handoff to a person when needed. See [CRM and contacts](contacts.html) and the recipe [An agent that answers WhatsApp](recipe-whatsapp.html).
4. **Give it the calendar.** Services, free slots and appointments. See [Scheduling and bookings](scheduling.html).
5. **Connect it to the business's systems.** Siigo, Alegra, TCC, Wasi, SIESA and others already ship as ready-made connectors, and your code can call them too. If the system is your own, register its MCP server and choose which actions your Mets use. See [Ready-made connectors from your code](ready-made-connectors.html) and [Custom connectors](custom-connectors.html).
6. **Leave the irreversible in a person's hands.** Read pending approvals and find out by webhook how they ended. See [Human approvals](human-approvals.html).

## Minimal example

Your own agent, connected to Meteor's MCP server with the official MCP client for TypeScript:

```ts
import { Client } from '@modelcontextprotocol/sdk/client';
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp';

const client = new Client({ name: 'my-agent', version: '1.0.0' });
await client.connect(new StreamableHTTPClientTransport(
  new URL('https://api.met.meteor.com.co/api/v1/mcp'),
  { requestInit: { headers: { Authorization: `Bearer ${process.env.MET_API_KEY}` } } },
));

const { tools } = await client.listTools(); // the Meteor tools your key allows
// pass `tools` to your model and run client.callTool(...) when the model asks for it
```

If you'd rather have a Met in your workspace do the work, it is one call:

```ts
import Met from '@meteor.ia/sdk';

const met = new Met(process.env.MET_API_KEY!);
const run = await met.runs.create({ input: 'Which of today\'s conversations are still unanswered?' });
console.log(run.output);
```

## What it does not cover

- **Approving through the API.** What waits for approval —a charge, an invoice, a post— is decided by a person from the business in Met. Your key sees it, but doesn't decide it.
- **Charging directly through the API.** There is no public operation to charge a customer: the charge is requested by a Met with whatever skill the workspace has, and it waits for approval.
- **Connecting your own account's WhatsApp through the API.** You connect it once from the dashboard, in **Channels → WhatsApp**. Through the API only Tech Partners do it, on their customers' accounts.
- **Writing outside the 24-hour window** without a template approved by Meta. It is a WhatsApp rule, not a Meteor one.
- **External actions with a test key.** Sending messages, running integrations or writing to the calendar answer `403 test_mode_restricted` with a `met_test_` key, and those tools don't show up in your agent's MCP catalog.
