Session 12 / 15🔎עב

The bottom line (TL;DR)

  • A Telegram bot = one entry scenario with a Router (commands, text, voice, buttons).
  • Voice: Download → transcription → agent → TTS → Send.
  • WhatsApp only through the Cloud API: a 24-hour window and templates.
  • Slack for an internal channel: alerts, escalation, a knowledge bot in a thread.
  • One brain, many channels — we built a voice AI assistant.

The key points — in depth

1. Telegram

One webhook, a Router, an inline keyboard, chat action, Download a File.

2. Voice

Transcription with the language set; TTS; Voice vs. Audio.

3. WhatsApp

Cloud API, 24h, templates, opt-in, pricing.

4. Slack

Create a Message, Watch, threads, preventing loops.

5. Architecture

An entry per channel → normalize → brain → answer on the channel.

6. A voice assistant

replyMode, short answers, Credits.

Concept cards (click or press Enter to flip)

Watch Updates
An instant trigger for a Telegram bot.
Inline keyboard
Buttons under a message.
callback_query
The event created by clicking a button.
Transcription
Converting voice to text.
TTS
Converting text to voice.
24-hour window
The window for a free reply on WhatsApp.
Template
A WhatsApp message approved in advance.
Hub & spoke
A central brain with multiple channels.

Spaced repetition — the session concepts

Mark "I knew it" or "Not yet" — the cards you did not know come back more often. Cards from all the sessions are in the arcade.

Quick cheat sheet

WhatDetails
Telegram Bot → Watch UpdatesEntry
Telegram Bot → Download a FileA file/voice
OpenAI → Create a TranscriptionTranscription
Telegram → Send a Voice / AudioA spoken answer
Send a Chat Action: typing"Typing…"
WhatsApp Business Cloud → Send a Template MessageA proactive message
Slack → Create a Message (Thread TS)A thread
Scenarios → Call a scenarioCalling the brain

Common mistakes to avoid

  • Two scenarios on the same Telegram bot.
  • Sending MP3 as Voice.
  • Proactive WhatsApp messages without a template.
  • A Slack bot that answers itself.
  • Long spoken answers.

Self-review questions

  1. Why one entry scenario for a bot?
  2. What's the difference between Voice and Audio?
  3. What is the 24-hour window?
  4. How do you prevent a loop in Slack?
  5. What's the advantage of a brain scenario?

Homework and preparing for the next session

  1. A working voice assistant.
  2. Preparing for session 13: think about your sales funnel — where leads come from, what happens to them, and where they "fall off".