In one sentence
Students bring the agent to real channels — Telegram with voice, WhatsApp, Slack — in a one-brain architecture.
Preparation before the session
Time plan
- 00:00–00:15 Review: the knowledge bot
- 00:15–00:45 Telegram in depth: commands, buttons, files
- 00:45–01:15 Voice: transcription and a spoken answer
- 01:15–01:30 ☕ Break
- 01:30–01:55 WhatsApp Business
- 01:55–02:15 Slack + a multi-channel architecture
- 02:15–02:50 Building together: a voice assistant
- 02:50–03:00 Summary and practice
Lecture parts and activity type
| Part | Activity type |
|---|---|
| Telegram in depth | Demo |
| Voice: transcribe and answer | Simulation |
| WhatsApp Business | Explanation |
| Slack — the internal channel | Demo |
| Architecture: one brain, many channels | Drawing the architecture |
The 3 messages that must get across
- One bot = one entry.
- Voice = download → transcription → agent → reading aloud.
- One brain, many channels.
Questions for class discussion
- Which channel are your customers really on?
- When is a spoken answer better?
- What does opt-in mean on WhatsApp?
Live demo script
A bot with commands and buttons
- Entry — Watch Updates → Router.
- /start — Filter text = /start → Send a Text Message + inline keyboard.
- callback — Filter callback_query.data Exists → an inner Router by data.
- Text — Fallback → Send "I got it".
Transcribing voice messages
- Filter — voice.file_id Exists.
- Download — Telegram Bot → Download a File → File ID.
- Transcription — OpenAI → Create a Transcription: File = voice.ogg + data, language set.
- Test — Send: "I heard: {{text}}".
A full voice AI assistant
- Combine — Set variables: input, replyMode.
- Agent — Run an agent with Input = input + replyMode.
- Router — voice → TTS → Send Audio; text → Send Text.
Problems students will run into
| Problem | Quick fix |
|---|---|
| The button spins forever | Answer the callback (Answer a Callback Query) or send a message. |
| The Chat ID is empty on a click | It's under callback_query.message.chat.id. |
| Invalid file format | The file name has no extension; add .ogg. |
| The transcription is in the wrong language | Set the language. |
| The voice can't be heard on Telegram | Send Voice with MP3 — switch to Send Audio. |
| The answer is too long | An instruction + shortening. |
| The bot answers itself in a loop | A filter on user / bot_id. |
| not_in_channel | Invite the bot to the channel. |
Tips from the classroom
- A live voice message in class = a peak moment.
- WhatsApp — show the process, don't get stuck on approvals.
- Voice/Audio — explain it in advance.
Adapting to different levels
For students who struggle: Commands + buttons.
For fast students: Hub & spoke + rate limiting.
Answer key — multiple-choice questions
Students see the answers in shuffled order, so the key gives the wording of the right answer.
| # | Right answer |
|---|---|
| 1 | A callback_query with data |
| 2 | To show the bot is working during a slow action |
| 3 | OGG/Opus |
| 4 | The time you can reply freely after a customer message |
| 5 | Reply in a thread |
| 6 | One change for every channel |
| 7 | A terms violation and a risk of being blocked |
| 8 | Improves accuracy |
Homework
- A working voice assistant.
- Preparing for session 13: think about your sales funnel — where leads come from, what happens to them, and where they "fall off".