Case studies

I don’t want to pick up: how I set up an AI assistant that answers for me and messages me on Telegram

← All articles

This story was sent to us by a customer. We shortened the text and checked the prices and menu items against the dashboard. Thanks to the author for the article.

I don’t like phone calls. Especially when I’m asleep, busy, or just not in the mood to talk. A message can be read later. A call demands attention right away, before you even know who is calling and why.

I don’t want to give up calls entirely either. A delivery service calls, a friend from a new number, someone with a real question.

So I set it up like this: a person calls my regular number, my assistant talks to them, and Telegram tells me who called and what they wanted. Then I decide whether to reply with a message or call back.

The assistant’s name is Amina, and she runs on AutoCall.kz. Below I explain how it works, what I tested, and what you need to repeat it.

Where the idea came from

It all started with an article about the “Who called?” bot. There you send the bot the number of a missed call, and the AI calls back and finds out what they wanted. I wanted to remove even that step: let the person talk to the assistant right away while they are calling me.

How it works

  1. Someone calls my mobile number.
  2. The carrier forwards the call to an AutoCall.kz number.
  3. Amina introduces herself and asks who is calling and what message to pass on.
  4. I get the summary, transcript, and call recording in Telegram.

Everything happens in one call. Amina does not hang up to call back later.

I have an iPhone and an izi SIM. Forwarding all calls worked first, then forwarding when I don’t answer: for that I needed a 15-second timer. The second mode pairs well with Focus on the iPhone. Family and friends ring through, everyone else stays quiet.

What you need

  • An AutoCall.kz account and money on the balance.
  • A voice AI agent.
  • A number for the calls to go to, and an inbound route to the agent. Numbers can be rented from the SILVER plan (top-up from 30 000 ₸). On other plans you can connect your own number through a SIP account with your provider.
  • Call forwarding with your mobile carrier.
  • For Telegram reports: your own bot and a small program on a computer or server.

The assistant itself takes calls in the AutoCall.kz cloud. The computer is only needed for the program that forwards reports.

Step 1. The assistant

In the dashboard I open “Agents” → “Create an agent”. I mark that the agent answers inbound calls, describe the task, listen to the voices, and give it a name. Then the chat helper builds the agent: I pasted in the instructions below with the owner’s name changed, and asked it to record six fields in the report. If you are creating an agent for the first time, see the guide to creating an agent.

agent instructions
You are Amina, the personal AI assistant of [NAME].
You take incoming calls when [NAME] can’t answer.

Start the conversation:
“Hello! I’m Amina, the personal AI assistant of [NAME].
He can’t take your call right now. Could you please tell me
your name?”

After they answer, ask what the person wants to pass on.
Find out what it is about, the important details, and how urgent it is.
If the person asks for a callback, note the request.

Ask one short question at a time. If the person has already said
what you need, don’t ask again. Keep the conversation short.

Don’t promise a call, meeting, payment, or decision on the owner’s behalf.
Don’t make up his whereabouts, health, or plans.
If you don’t know something, say so.
Don’t ask for passwords, verification codes, or bank card details.

Speak Russian. If the caller switches to Kazakh,
switch to Kazakh.

At the end, thank them and say you will pass the message on.
If asked whether you are human, honestly say you are an AI assistant.

In the first version Amina said that I was ill. For everyday use a neutral “can’t answer right now” works better: you won’t have to change that reason once you recover.

Report fields:

Field What to record
caller_name Caller’s name
company Company, if mentioned
purpose Reason for the call
details Important details
urgency Urgency, in the caller’s words
requested_action What they ask you to do

If the person did not mention something, the field stays empty. For example, “urgent” appears in the report only if the caller said so.

Before connecting a number, talk to the agent yourself. The “Test call” button in the agent window calls you right in the browser. Introduce yourself, leave a message, interrupt it, and ask for something it has no right to promise.

Step 2. Number and route

I rented a number: “Settings” → “Numbers” → “Rent a number”. Rental costs 3 000 ₸ per month and is available from the SILVER plan. If your plan has no rental, connect a number from your SIP provider in the “PBX” section. Details are on the PBX connection page.

Then “Routes” → “Add route” → “Incoming”. In the “Calls come to” field I picked the rented number, and in “Who answers” the AI agent Amina. I ticked “Record calls” to get the audio. What else routes can do is described on the virtual PBX page.

Before setting up forwarding, call the new number directly. The assistant should answer, and the call should appear in the route log. This way you test the number and the agent separately.

The commands below contain ASSISTANT_NUMBER. Replace it with your AutoCall.kz number in the +7XXXXXXXXXX format, without spaces.

Step 3. Call forwarding

Option A. All calls go straight to the assistant

This option worked for me first. I pick the right SIM, dial the command, and press call:

dial on the phone
**21*ASSISTANT_NUMBER#

Check: *#21#, turn off: ##21#.

In this mode Amina gets all regular calls, including calls from family and friends. “Do Not Disturb” on the iPhone won’t help here: the carrier forwards the call before it reaches the phone.

Option B. Family and friends ring through, the assistant picks up everyone else after 15 seconds

There are two separate settings here:

  1. Focus on the iPhone lets calls from selected people through and silences the rest.
  2. The carrier forwards unanswered calls to the assistant’s number.

On the iPhone: “Settings” → “Focus” → “Do Not Disturb” → “People”. Choose your family and friends, allow calls only from them, and turn off repeated calls. Menu names depend on the iOS version, see the Apple guide for details.

On my izi SIM, forwarding on no answer only worked with an explicit timer:

dial on the phone
**61*ASSISTANT_NUMBER**15#

There are two asterisks between the number and 15. The last number sets the wait time: 5, 10, 15, 20, 25, or 30 seconds. Without it the network uses its own value. Check: *#61#, turn off: ##61#. If forwarding of all calls was on before, turn it off first: ##21#.

What to keep in mind:

  • The caller hears ringing first; for me, forwarding kicks in after about 15 seconds. If they hang up earlier, the assistant won’t get to talk to them.
  • If you don’t answer a family member, their call also goes to the assistant.
  • Focus also silences notifications; the apps you need are set up separately.
  • “Do Not Disturb” by itself does not turn on call forwarding.

The network showed that forwarding was on, but calls were not forwarded until I set the timer to 15 seconds. So test the setting with a real call from another phone.

Forwarding codes can differ between carriers; check support and pricing with yours. How to see which forwarding is already set on a number, and how to remove it, is covered in the article “How to check and turn off call forwarding”.

Step 4. Reports in Telegram

Reports are forwarded by a small Python program. It reads the route log through the AutoCall.kz API and, after each call, sends to my private chat:

  1. a summary of the fields the agent filled in;
  2. the transcript, once it is ready;
  3. the recording, if it is turned on.
Amina
Who:
Daniyar
From:
service center
Purpose:
agree on a delivery time
Details:
suggests tomorrow from 2:00 to 4:00 pm
To do:
confirm the time
12:47
A sample report. The call is made up, it is not a record of a real conversation.

To set it up:

  1. In Telegram, create a bot with @BotFather using the /newbot command and save the token. Open your bot and send /start. See the Telegram guide for details.
  2. In the dashboard, open “API”, create a key, and click “Set up access”. Tick read access only: GET /routes/inbound/{id}, GET /routes/inbound/{id}/calls, GET /calls/{id}, GET /calls/{id}/transcript, and GET /calls/recordings/{call_id}. The program does not need to start call campaigns. If it will run on a server with a fixed address, allow the key from that IP only.
  3. Put the key, the token, your chat ID, and the route ID into config.json. The route ID is the number in the address of its page, for example /inbound/123456.
  4. Start the program and leave the assistant a test message.

Download the program and instructions (ZIP, 11 KB)

You need Python 3.10 or newer on macOS or Linux, with no third-party libraries. FFmpeg is optional: with it the recording arrives as a voice message, without it as a file.

The program polls the API itself, so it needs no domain, webhook, or open port. The computer has to be on and online. If it is asleep, the assistant still takes calls, and the reports arrive once the program is running again. For continuous use, it is better to put it on a server with autostart.

Don’t show the key, the token, or the call database to anyone. Before publishing examples, remove phone numbers and personal data, and use recordings only with the consent of the people in them.

What it costs

You pay for the number rental, the conversation with the assistant, the inbound call, and the recording. Your carrier may charge separately for forwarding, plus a server for the program if you need one. Prices on the SILVER plan:

Item Price
Number rental 3 000 ₸ per month
Conversation with the assistant 69 ₸ per minute, billed per second
Inbound call 5.5 ₸ per call
Recording 3 ₸ per conversation

For example, 100 conversations of 30 seconds with recording in a month:

per month
3 000 + 50 × 69 + 100 × 5.5 + 100 × 3 = 7 300 ₸

The shorter the call, the cheaper it is. Prices on other plans are on the pricing page.

If something doesn’t work

I tested it piece by piece:

  1. A direct call to the assistant’s number. No answer: check the route and the agent.
  2. A call to your mobile from another phone. This tests the forwarding itself.
  3. The route log in the dashboard. If the call is not there, it never reached AutoCall.kz. Sort it out with your carrier; you can also write to AutoCall.kz support.
  4. Telegram. The call is in the log but there is no report: check the program.

If forwarding all calls works but forwarding on no answer does not, set a timer as in the command with **61*. That is exactly what helped me.

What about WhatsApp and Telegram calls?

This setup works only with regular calls to a mobile number. Call forwarding does not affect calls inside WhatsApp and Telegram; those are limited in the settings of the apps themselves. Telegram is only used here for reports.

What I’d like to simplify

Right now you have to set up the bot, the key, and the program yourself. An AI coding assistant helped me, but with a ready-made integration none of this would be needed. The most convenient way would be this: open a shared AutoCall.kz bot, link your account, pick a route, and get reports. No bot or server of your own, and you can unlink the account at any time.

From AutoCall.kz: we have added the idea to our plans. Until such a bot exists, the program from this article does the same job.

For me the point is simple: I find out what the person wanted to say, and I don’t drop what I’m doing for every call. I reply when and how it suits me.

The AutoCall.kz team is ready to add a bonus to your balance if you send us your own article about how you work with the service.

Frequently asked questions

Do I need a server for the assistant to take calls?

No. The assistant runs in the AutoCall.kz cloud. A computer or server that is switched on is only needed for the program that forwards reports to Telegram, and it does not need a public address.

Can I do without renting a number?

Yes, if you have a number with a SIP provider. Connect it in the “PBX” section and create an inbound route to the agent. Number rental is available from the SILVER plan.

Will calls from family and friends also go to the assistant?

With all calls forwarded, yes. With forwarding on no answer, only if you did not answer within the chosen time, for example 15 seconds.

Does the assistant speak Kazakh?

Yes. If the caller switches to Kazakh, the agent switches to Kazakh too.

Read about the bot that calls back missed calls in the “Who called?” article; the full API specification is in openapi.yaml.

Set up your own assistant

Sign-up is free, and the test balance is enough to talk to the agent live.

Try it free →