> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lokutor.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Build with an AI assistant

> Let Claude, ChatGPT or any assistant that speaks MCP set up your voice agent end to end: instructions, knowledge, workflow, calendar, tests, a phone number and a first call. You approve what costs money or calls someone.

Lokutor is built so that an AI assistant can do the whole job for you. Connect it once, describe what you need in your own words, and the assistant creates the agent, tests it with simulated calls, gets it a number and has it call you. The only things it hands back to you are the ones that should be yours: signing in, paying, and approving anything that costs money or rings a real person.

## Connect your assistant

Add Lokutor's MCP server, `https://api.lokutor.com/mcp`, as a connector:

* **Claude** (web and desktop): **Settings → Connectors → Add custom connector**, URL `https://api.lokutor.com/mcp`, then **Connect**.
* **Claude Code**: `claude mcp add --transport http lokutor https://api.lokutor.com/mcp`, then `/mcp` to sign in.
* **ChatGPT, Cursor, VS Code and other clients** that support remote MCP servers: add a server with the same URL. Clients that cannot sign in take an API key as `Authorization: Bearer <key>` ([details](https://docs.lokutor.com/guides/mcp-server.md#add-it)).

Connecting opens a Lokutor page. If you have no account yet, create one there: you come back to the same page, and a new account gets the [welcome credit](https://docs.lokutor.com/pricing.md). Press **Allow** and the assistant gets a key of its own, which you can delete in **Developers → API keys** at any time.

For answers about Lokutor itself, add the docs server too: `https://docs.lokutor.com/mcp`.

## Ask for what you need

Write it as you would to a person:

> Set up a Lokutor receptionist for Clínica Dental Sonrisa in Madrid, Calle Mayor 10, open Monday to Friday 9:00 to 19:00. It answers in Spanish with a friendly female voice, answers questions about hours, address and prices (here is our price list: …), books appointments in my Google Calendar in 30-minute slots, and transfers to the front desk, +34 910 000 000, when someone asks for a person. Test it, give it a Madrid number and call my mobile, +34 600 111 222, so I can hear it.

What the assistant does with Lokutor's tools:

1. **Creates the agent.** Instructions, voice, language and opening line (`create_agent`). It reads `describe_agent_settings` for everything else: the [workflow](https://docs.lokutor.com/guides/workflows.md) when the call should follow fixed steps, the details to keep from every call, transfers, voicemail, silence and so on.
2. **Gives it what it answers from.** Knowledge documents (`add_knowledge`) and the rules every call is judged against (`add_rules`).
3. **Connects your calendar.** `connect_google_calendar` gives you a Google sign-in link. Only you can sign in, once; then the agent books in it.
4. **Proves it works.** It writes [tests](https://docs.lokutor.com/guides/testing-agents.md) (`add_tests`, or `suggest_tests`), runs them as simulated calls (`run_tests`) and reads every verdict and line (`get_test_run`). It fixes what fails and runs them again, before anyone calls.
5. **Gets it a number.** It searches the numbers for sale in your country with their monthly price (`search_phone_numbers`) and asks to buy one (`buy_phone_number`).
6. **Calls you.** It asks to place a call from the agent to your phone (`place_call`), then reads the transcript (`get_conversation`).

Steps 5 and 6 wait for you, as below.

## What you approve

Buying or releasing a number, placing a call and starting a campaign come back to you as a link. The page shows what it is, what it costs and which assistant asked. **Approve** does it immediately, with your account's rules; **Reject** does nothing. If you have not decided within 24 hours, the request expires ([details](https://docs.lokutor.com/guides/mcp-server.md#approvals)).

When you approve, you can also let the assistant do more of the same without asking:

* **Numbers:** buy numbers up to an amount a month.
* **Calls:** call the same number again, up to so many times a day. This is handy while it tunes an agent by calling your phone.

Campaigns and releasing a number always ask.

Changes to an agent that callers are already using go to its **draft** first: the assistant tests the draft with `run_tests` (`environment: "staging"`), then publishes it with `publish_agent`. Every version is kept, so any change can be undone (`restore_agent_version`), from the assistant or from the dashboard.

## Paying

Everything is paid from your prepaid balance, at the [rate card](https://docs.lokutor.com/api-reference/rate-card.md)'s prices: agent minutes, numbers, calls and tests. The assistant can tell you what is left (`get_balance`) and what something costs (`get_pricing`). When it needs more, it gives you a link to add funds (`get_topup_link`); only you can pay.

## For assistants reading this

* **MCP server:** `https://api.lokutor.com/mcp` (OAuth sign-in, or an API key as `Authorization: Bearer <key>`). The server's instructions list the order of the tools.
* **Docs:** the docs server at `https://docs.lokutor.com/mcp`; [`llms.txt`](https://docs.lokutor.com/llms.txt) and [`llms-full.txt`](https://docs.lokutor.com/llms-full.txt); the [OpenAPI spec](https://docs.lokutor.com/api-reference/openapi-spec.md).
* **Coding agents:** the [Agent Skill](https://docs.lokutor.com/guides/agent-skill.md) teaches building with the SDKs and the REST API.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.