Quick Start

Create an agent in the Flutch console, talk to it in the Playground, call it over the API, connect it to a Telegram bot and answer your first customer.

You need a browser, a terminal with curl and a Telegram account.

1. Sign up and name your workspace

Open console.flutch.ai/signup. On Sign in or sign up, click Continue with Google, or enter your email, click Send Code, type the code from the email and click Verify. Your first sign-in creates the account.

On Name your workspace, type a name in Workspace name and click Create workspace. You start with $5 credit.

2. Pick a starter

The console opens Create an agent with ready starters. Point at Assistant with tools and click Create on it. The agent is ready at once, and its Playground opens.

If your agent already runs on your own server, pick Your own code and click Connect. Enter the Endpoint URL and click Create agent. Copy the Signing secret to your server, click Send a test message, then Open Playground. How the requests and replies look: Your own code behind a webhook.

Later you can open the same starters from Agents → Create Agent.

3. Talk to it in the Playground

Type Hello and press Enter. The reply comes in a few seconds.

To change what the agent says, edit its system prompt in the agent's AI settings, for example You are the assistant of Acme Bikes, a bicycle repair shop. Answer in two short sentences. Changes save automatically. Back in the Playground, click New thread and say hello again.

4. Call it over the API

In the Playground, click Use via API. The window shows the Agent ID and ready commands for this agent. Click Create an API key, then Generate API key. Your new API key shows the key once: copy it now, then click I've saved my key.

Keep the key on your server. Your website or app talks to your server, and your server calls Flutch.

bash
export FLUTCH_API_KEY="flutch_..."

curl -X POST https://api.flutch.ai/api/v1/agents/<AGENT_ID>/invoke \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $FLUTCH_API_KEY" \
  -d '{
    "externalUserId": "user-123",
    "content": { "text": "Hello, what can you help me with?" }
  }'

externalUserId is your own ID for the person the agent talks to, up to 255 characters. Flutch creates the user the first time it sees the ID, and each ID gets its own conversation.

The response is the agent's message, shortened here:

json
{
  "id": "6b0ae7015ff693373da15bc0",
  "threadId": "6b0ae6ff5ff693373da15ba6",
  "role": "assistant",
  "platform": "api",
  "reason": "agent_reply",
  "status": "delivered",
  "content": {
    "text": "Hello! I'm here to help you with any questions about bicycle repairs, maintenance, or services at Acme Bikes. ..."
  }
}

To continue the same conversation, send the threadId from the response:

bash
curl -X POST https://api.flutch.ai/api/v1/agents/<AGENT_ID>/invoke \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $FLUTCH_API_KEY" \
  -d '{
    "externalUserId": "user-123",
    "threadId": "<THREAD_ID>",
    "content": { "text": "How long does a tune-up take?" }
  }'

To show the answer while it is being written, call /stream with the same body. The events are described in Agent API: Stream Agent Response.

5. Connect Telegram

After the first reply, the agent page shows Show your agent to a real person. Click Connect Telegram, then:

  • In Telegram, open @BotFather and send /newbot. Answer its two questions.
  • Copy the token it sends you. It looks like 123456789:ABCDefGhIJKlmNoPQRsTUVwxyZ.
  • On the Telegram tile in Channels, click Connect, paste the token into Token and click Add. Flutch sets up the bot's webhook for you.

Now message the bot from your phone: send /start and then any question. The agent answers.

If your customers are in Russia, connect the chat widget or Instagram first: Telegram links do not open there without a VPN. Both are on the same agent page, see Connect Channels.

6. See the conversation in the Inbox

Open Inbox in the sidebar. The conversation from your phone is there, with your messages and the agent's replies. Conversations from every channel of every agent come to the same Inbox.

7. Check your balance

Open Billing in the sidebar. Overview shows the Account balance and when the $5 start credit was added.

The balance pays for the agents' work: model calls at the provider's price plus 5%, and processing and storage at the rates on Pricing. A short reply on Claude Haiku 4.5 costs less than a cent, so at today's prices the $5 covers about 1,400 of them.

To top up, click Add funds, pick an amount and click Proceed to Payment. After your first channel is connected, the console also offers this in the card Your agent now answers customers.

When the balance drops under $1, the console shows Your balance is running low. Below zero the agents stop answering and the console shows Agents are not answering customers. What happens then and how the agents come back: Balance: when agents stop and how they come back.

Next steps

  • Knowledge bases: load your documents, then create an agent from the Answers from documents starter.
  • Quality Control: run test cases and LLM judges before you change the prompt or the model.
  • Chat widget: add the agent to your website with one script tag.
  • MCP connector: manage your agents from Claude and other AI assistants.
  • Your own code: run the agent on your server in any language behind one signed webhook. A LangGraph.js graph on the MIT Flutch SDK connects through the same «Your own code» agent.
  • Agent API: streaming, threads, message history, files and errors.