Tuesday, 18 August 2026

AI Hand Gesture Speech Converter for Dumb People

The design below uses an ESP32-CAM to capture hand gestures, an AI vision model to recognize a predefined gesture vocabulary, n8n as the automation/agent layer, text-to-speech for voice generation, Telegram for remote voice alerts, Google Sheets for logging, ThingSpeak for IoT visualization, and a web dashboard for live monitoring.


1. Project Title

AI-Powered Hand Gesture to Speech Converter and Agentic IoT Communication System

Short title

AI Gesture-to-Speech ESP32 IoT with n8n Automation, Telegram Voice Alerts, Google Sheets and ThingSpeak Dashboard


2. Abstract

People who cannot communicate through normal speech may use sign language, gestures, writing, or communication devices. This project proposes an IoT-based assistive communication system capable of recognizing predefined hand gestures and converting them into meaningful text and synthesized speech.

An ESP32-CAM captures an image of the user's hand gesture. The image is transmitted through Wi-Fi to an n8n Webhook. n8n acts as the automation and agentic layer. An AI vision model analyzes the image and identifies the gesture, for example:

  • HELLO
  • YES
  • NO
  • HELP
  • WATER
  • FOOD
  • MEDICINE
  • EMERGENCY
  • THANK YOU
  • I NEED HELP

The recognized gesture is converted into text. The system can then:

  1. Display the text on a web dashboard.
  2. Generate speech using a text-to-speech service.
  3. Send the generated voice message through Telegram.
  4. Record the event in Google Sheets.
  5. Send numerical event information to ThingSpeak.
  6. Trigger special actions for emergency gestures.
  7. Allow an AI agent to decide what automation should occur.

The ESP32 can also provide a local webpage showing the latest recognized gesture, system status, Wi-Fi status, confidence, and communication history.

ESP32 supports Wi-Fi station mode for Internet-connected IoT applications and can make HTTP/S requests, making it suitable as the edge device in this architecture.


3. Important Design Decision

There are two possible architectures.

Architecture A — Recommended

ESP32-CAM
    |
    | Image
    v
n8n Webhook
    |
    v
AI Vision
    |
    v
Gesture JSON
    |
    +------> Text
    |
    +------> AI Agent
    |           |
    |           +--> Telegram
    |           +--> Google Sheets
    |           +--> ThingSpeak
    |           +--> TTS
    |
    v
ESP32 / Web Dashboard

Architecture B — Edge AI

Camera
   |
ESP32
   |
TinyML / TensorFlow Lite
   |
Gesture
   |
n8n

Architecture B is more difficult because the ESP32 has limited memory and computing resources.

For a final-year project/demo, Architecture A is considerably easier to implement and demonstrate.


4. System Objectives

The project has the following objectives:

Primary objective

Convert predefined hand gestures into speech automatically.

Secondary objectives

  • Real-time gesture recognition.
  • IoT connectivity using ESP32.
  • AI-based image interpretation.
  • Automated workflows using n8n.
  • Voice notification through Telegram.
  • Cloud data logging.
  • Google Sheets database.
  • ThingSpeak visualization.
  • Web-based monitoring.
  • Emergency alert mechanism.
  • AI-agent-based decision making.

5. Proposed Gesture Vocabulary

Start with a small vocabulary rather than attempting complete sign-language translation.

Gesture Meaning Action
OPEN PALM HELLO Normal message
THUMBS UP YES Normal message
THUMBS DOWN NO Normal message
FIST STOP Normal message
POINT UP I NEED HELP Alert
HEART THANK YOU Normal
WATER gesture I NEED WATER Normal
FOOD gesture I NEED FOOD Normal
MEDICAL gesture MEDICAL HELP High priority
EMERGENCY gesture EMERGENCY Critical alert

Why start with fixed gestures?

A complete sign language is not simply a collection of static hand poses. It can involve:

  • hand shape
  • movement
  • position
  • orientation
  • facial expressions
  • two-handed movements
  • timing
  • context

Therefore, this project should initially be described as a predefined gesture recognition system, not a universal sign-language translator.


6. Overall Block Diagram

                     ┌─────────────────────┐
                     │     USER / HAND     │
                     │      GESTURE        │
                     └──────────┬──────────┘
                                │
                                ▼
                     ┌─────────────────────┐
                     │     ESP32-CAM       │
                     │                     │
                     │ Camera + Wi-Fi      │
                     └──────────┬──────────┘
                                │
                           HTTP/HTTPS
                                │
                                ▼
                     ┌─────────────────────┐
                     │    n8n WEBHOOK      │
                     │                     │
                     │ Workflow Trigger    │
                     └──────────┬──────────┘
                                │
                                ▼
                     ┌─────────────────────┐
                     │    AI VISION        │
                     │ Gesture Recognition │
                     └──────────┬──────────┘
                                │
                           JSON Result
                                │
                                ▼
                     ┌─────────────────────┐
                     │    AI AGENT         │
                     │ Decision / Routing  │
                     └──────────┬──────────┘
                                │
             ┌──────────────────┼──────────────────┐
             │                  │                  │
             ▼                  ▼                  ▼
      ┌────────────┐     ┌─────────────┐    ┌─────────────┐
      │ Telegram   │     │ Google      │    │ ThingSpeak  │
      │ Voice      │     │ Sheets      │    │ Dashboard   │
      └────────────┘     └─────────────┘    └─────────────┘
             │                  │                  │
             └──────────────────┼──────────────────┘
                                │
                                ▼
                     ┌─────────────────────┐
                     │     WEB DASHBOARD   │
                     │                     │
                     │ Gesture             │
                     │ Text                │
                     │ Confidence          │
                     │ Status              │
                     │ History             │
                     └─────────────────────┘

7. Detailed Working Principle

Step 1 — User performs a gesture

The user places their hand in front of the ESP32-CAM.

For example:

       ✋
       |
       |
   "HELP"

The camera captures the hand.


8. Step 2 — ESP32-CAM captures image

The ESP32-CAM captures a JPEG image.

The ESP32 uses Wi-Fi to connect to the Internet and sends the image to the n8n webhook.

ESP32 supports Wi-Fi station mode, which is the appropriate mode when the board needs Internet connectivity.


9. Step 3 — n8n receives the image

n8n Webhook:

POST /gesture

Example:

https://YOUR-N8N-DOMAIN/webhook/gesture

The incoming request contains:

device_id
timestamp
image

10. Step 4 — AI Vision Recognition

The AI receives the image and is instructed to return structured information.

Example:

{
  "gesture": "HELP",
  "text": "I need help",
  "confidence": 0.94,
  "priority": "HIGH"
}

Modern vision-capable AI APIs can accept image inputs for classification and visual interpretation.


11. AI Prompt

Use a strict prompt such as:

You are a hand gesture recognition system for an assistive
communication device.

Recognize ONLY gestures from this vocabulary:

HELLO
YES
NO
STOP
HELP
WATER
FOOD
MEDICINE
THANK_YOU
EMERGENCY
UNKNOWN

Return ONLY valid JSON.

Required format:

{
  "gesture": "HELP",
  "text": "I need help",
  "confidence": 0.94,
  "priority": "HIGH"
}

Rules:

1. Do not invent gestures.
2. If the image is unclear, return UNKNOWN.
3. confidence must be between 0 and 1.
4. EMERGENCY must have priority CRITICAL.
5. HELP must have priority HIGH.
6. Do not infer sensitive information about the person.

12. Step 5 — AI Agent

The n8n AI Agent becomes the decision-making layer.

For example:

             Gesture
                |
                v
          ┌─────────────┐
          │ AI AGENT    │
          └──────┬──────┘
                 |
       ┌─────────┼─────────┐
       |         |         |
       v         v         v
    NORMAL     HIGH      CRITICAL
       |         |         |
       v         v         v
    Log       Log +      Log +
    Sheet     Telegram   Telegram
                |        Voice
                v
             TTS

The agent can have tools such as:

Tool 1: log_to_google_sheets
Tool 2: update_thingspeak
Tool 3: send_telegram_text
Tool 4: send_telegram_voice
Tool 5: update_dashboard
Tool 6: notify_emergency_contact

13. Agent Decision Example

Input:

{
  "gesture": "EMERGENCY",
  "text": "I need emergency assistance",
  "confidence": 0.97,
  "priority": "CRITICAL"
}

Agent decision:

1. Save event.
2. Generate speech.
3. Send Telegram voice alert.
4. Send Telegram text.
5. Update ThingSpeak.
6. Mark event CRITICAL.
7. Update dashboard.

14. n8n Workflow

The complete n8n workflow should look like:

┌───────────────┐
│ Webhook       │
│ /gesture      │
└───────┬───────┘
        │
        ▼
┌───────────────┐
│ Extract Image │
│ + Device ID   │
└───────┬───────┘
        │
        ▼
┌────────────────┐
│ AI Vision      │
│ Recognition    │
└───────┬────────┘
        │
        ▼
┌────────────────┐
│ JSON Parser    │
└───────┬────────┘
        │
        ▼
┌────────────────┐
│ AI Agent       │
└───────┬────────┘
        │
        ├───────────────┐
        │               │
        ▼               ▼
 Google Sheets      ThingSpeak
        │               │
        └───────┬───────┘
                │
                ▼
          Priority Check
                │
         ┌──────┴───────┐
         │              │
       NORMAL        EMERGENCY
         │              │
         ▼              ▼
       TTS           TTS + Alert
         │              │
         └──────┬───────┘
                ▼
           Telegram
                │
                ▼
          Web Dashboard

n8n has a built-in Telegram integration for automating Telegram operations.


15. Hardware Required

Main components

Component Quantity
ESP32-CAM AI Thinker 1
FTDI USB-to-TTL programmer 1
5V power supply 1
LED 1
220Ω resistor 1
Push button 1
Buzzer 1
Breadboard 1
Jumper wires Several
Wi-Fi router/hotspot 1

Optional

  • OLED display
  • Speaker
  • MAX98357A I2S amplifier
  • MicroSD card
  • PIR sensor
  • emergency button
  • rechargeable battery

16. Hardware Schematic

A simple version:

              ┌──────────────────┐
              │    ESP32-CAM     │
              │                  │
              │ Camera           │
              │                  │
              │ GPIO             │
              └───────┬──────────┘
                      │
            ┌─────────┼──────────┐
            │         │          │
            ▼         ▼          ▼
          LED       BUZZER     BUTTON
          220Ω
            │
           GND


ESP32-CAM
    │
    │ Wi-Fi
    ▼
Internet
    │
    ▼
n8n

17. Optional Speaker Circuit

For local speech output:

ESP32
  |
 I2S
  |
  v
MAX98357A
  |
  v
Speaker

However, for the first version I recommend:

Gesture
   ↓
n8n
   ↓
TTS
   ↓
Telegram Voice

This avoids implementing audio decoding and I2S playback on the ESP32 initially.


18. Telegram Architecture

AI Agent
    |
    v
Text
    |
    v
TTS
    |
    v
MP3/voice
    |
    v
Telegram Bot
    |
    v
Caregiver / Family Member

Telegram's Bot API provides sendVoice for voice messages. Current Bot API documentation supports voice messages in formats including OGG/Opus, MP3 and M4A, subject to the API's file handling requirements.


19. Telegram Example

Suppose the user makes:

HELP gesture

Telegram receives:

🚨 ASSISTIVE DEVICE ALERT

Gesture: HELP

Message:
"I need help."

Confidence:
94%

Priority:
HIGH

And below it:

🔊 Voice message

20. Text-to-Speech

A TTS API converts:

"I need help."

into:

speech.mp3

For example, OpenAI's current audio API provides:

POST /v1/audio/speech

for generating speech from text. It supports multiple audio formats including MP3 and Opus.

Example request:

{
  "model": "gpt-4o-mini-tts",
  "voice": "alloy",
  "input": "I need help.",
  "response_format": "mp3"
}

21. Google Sheets Database

Create a spreadsheet called:

AI Gesture Communication Log

Columns:

Timestamp Device ID Gesture Text Confidence Priority Status
18-08-2026 21:20 ESP32CAM01 HELP I need help 0.94 HIGH Sent
18-08-2026 21:22 ESP32CAM01 WATER I need water 0.91 NORMAL Sent
18-08-2026 21:25 ESP32CAM01 EMERGENCY Emergency 0.98 CRITICAL Alerted

This gives you a complete historical database.


22. ThingSpeak Configuration

Create a ThingSpeak channel.

Suggested fields:

Field 1 = Gesture ID
Field 2 = Confidence
Field 3 = Priority
Field 4 = Device Status
Field 5 = Event Count

ThingSpeak's REST API allows channel data to be updated using GET or POST requests through https://api.thingspeak.com/update.

Example:

https://api.thingspeak.com/update.json

POST:

api_key=YOUR_WRITE_API_KEY
field1=5
field2=0.94
field3=2
field4=1
field5=27

23. Gesture ID Table

Use numerical IDs for ThingSpeak.

1 = HELLO
2 = YES
3 = NO
4 = STOP
5 = HELP
6 = WATER
7 = FOOD
8 = MEDICINE
9 = THANK_YOU
10 = EMERGENCY
0 = UNKNOWN

24. ThingSpeak Flow

Gesture Recognition
       |
       v
JSON
       |
       v
n8n
       |
       v
HTTP Request
       |
       v
ThingSpeak API
       |
       v
Channel
       |
       v
Charts

25. ESP32-CAM Firmware

AI Guest Greeting and Guiding Robot with Face Recognition & Voice Interaction

AI Guest Greeting & Guiding Robot

ESP32 + Face Recognition + Voice Interaction + AI Agent + n8n + Telegram Voice Alerts + Google Sheets + ThingSpeak

Below is a complete reference architecture you can use for a final-year project, diploma project, prototype, or research demonstration. The design combines edge AI on an ESP32-S3 camera device with an n8n agentic IoT backend, Telegram notifications, Google Sheets logging, and ThingSpeak visualization.

For face recognition, I recommend an ESP32-S3-EYE or another ESP32-S3 camera board rather than a basic ESP32-CAM. Espressif specifically documents ESP32-S3-EYE for face recognition/detection, and ESP-WHO provides the face-detection/recognition framework.


1. Project title

AI-Powered Smart Guest Greeting and Guiding Robot Using ESP32-S3, Face Recognition, Voice Interaction, n8n Agentic Automation, Telegram, Google Sheets and ThingSpeak

Short title

Agentic AI Guest Robot – ESP32 + n8n + Telegram + ThingSpeak


2. Abstract

The proposed project is an intelligent autonomous guest reception and guidance robot capable of detecting and recognizing visitors, greeting known guests by name, interacting through voice, guiding visitors to predefined destinations, recording visitor events, and notifying an administrator remotely.

The robot uses an ESP32-S3-based vision system to capture images and perform face detection/recognition at the edge. The ESP32 communicates with an n8n automation server over Wi-Fi. n8n acts as the orchestration and agentic layer, receiving events from the robot, deciding what action should be taken, recording events in Google Sheets, updating a ThingSpeak IoT dashboard, and sending Telegram notifications.

The system can also accept voice commands. A voice message can be sent through Telegram, converted to text by a speech-to-text service, interpreted by an AI agent, and converted into a robot command.

The result is an Agentic IoT system where:

Sensors → ESP32 Edge AI → Internet → n8n → AI Agent → Decision → Robot/Cloud/Telegram

ThingSpeak supports REST and MQTT interfaces for writing and retrieving IoT channel data; for a first implementation, REST is particularly straightforward with ESP32.


3. Main objectives

The robot should perform these functions:

  1. Detect a person.
  2. Capture the person's face.
  3. Recognize a registered guest.
  4. Display the guest's name.
  5. Speak a personalized greeting.
  6. Ask the visitor where they want to go.
  7. Understand a voice command.
  8. Use an AI agent to interpret the request.
  9. Navigate toward the requested location.
  10. Detect obstacles.
  11. Stop when an obstacle is detected.
  12. Log the visitor.
  13. Update the IoT dashboard.
  14. Notify an administrator through Telegram.
  15. Optionally send a Telegram voice/audio alert.
  16. Accept remote commands.
  17. Maintain an event history in Google Sheets.

4. High-level architecture

                       ┌─────────────────────┐
                       │       GUEST         │
                       │                     │
                       │ Face + Voice        │
                       └──────────┬──────────┘
                                  │
                    ┌─────────────▼─────────────┐
                    │      ESP32-S3 ROBOT       │
                    │                           │
                    │ Camera                    │
                    │ Face Detection            │
                    │ Face Recognition           │
                    │ Microphone                │
                    │ Speaker                   │
                    │ Ultrasonic Sensors        │
                    │ Motors                    │
                    │ OLED/LCD                  │
                    └─────────────┬─────────────┘
                                  │ Wi-Fi
                                  │ HTTPS/HTTP
                                  ▼
                    ┌───────────────────────────┐
                    │          n8n               │
                    │      Automation Server     │
                    │                           │
                    │ Webhook                   │
                    │ AI Agent                  │
                    │ Logic / Switch            │
                    │ HTTP Request              │
                    │ Google Sheets             │
                    │ Telegram                  │
                    └──────┬────────┬───────────┘
                           │        │
              ┌────────────┘        └─────────────┐
              ▼                                    ▼
    ┌──────────────────┐                 ┌──────────────────┐
    │ Google Sheets    │                 │ Telegram Bot     │
    │ Visitor Database │                 │ Admin Alerts     │
    │ Event Log        │                 │ Voice/Text       │
    └──────────────────┘                 └──────────────────┘
              │
              ▼
    ┌──────────────────┐
    │   ThingSpeak     │
    │ IoT Dashboard    │
    │ Charts / Status  │
    └──────────────────┘

5. Recommended hardware

Main controller

Option A — Recommended

ESP32-S3-EYE

It provides a camera, microphone and display-oriented hardware and is explicitly positioned by Espressif for face recognition applications.

Option B

ESP32-S3 development board + OV2640 camera + external microphone/display.


Hardware list

Component Quantity Purpose
ESP32-S3-EYE / ESP32-S3 camera board 1 Main AI/vision
ESP32-S3/ESP32 controller 1 Robot control, if camera board is separated
OV2640 camera 1 Face image
Microphone 1 Voice input
MAX98357A I2S amplifier 1 Audio output
Speaker 1 Greeting
HC-SR04 / VL53L0X 2–3 Obstacle detection
L298N/TB6612FNG 1 Motor driver
DC geared motors 2 Robot movement
Robot chassis 1 Mechanical platform
Caster wheel 1 Balance
OLED 0.96" 1 Status
LEDs 2–3 Status indication
Servo 1 Optional head movement
Li-ion battery 1 Power
5-V regulator 1 Logic/audio supply
Switch 1 Power
Buzzer 1 Alert

6. Important design decision

Do not make the ESP32 do every AI task.

A better architecture is:

ESP32

Responsible for:

  • camera
  • face detection
  • face recognition
  • motors
  • sensors
  • microphone
  • speaker
  • Wi-Fi
  • real-time safety

n8n

Responsible for:

  • workflow orchestration
  • AI agent
  • visitor database lookup
  • event logging
  • notifications
  • cloud integration
  • command processing

This creates a true edge + cloud agentic IoT architecture.


7. Software architecture

ESP32 Firmware
      │
      ├── Camera
      ├── Face Recognition
      ├── Sensors
      ├── Motor Controller
      ├── Voice Interface
      └── Wi-Fi Client
             │
             ▼
       REST Webhook
             │
             ▼
          n8n
             │
       ┌─────┴─────────┐
       ▼               ▼
    AI Agent       Automation
       │               │
       ├──────┬────────┤
       ▼      ▼        ▼
    Sheets Telegram ThingSpeak
       │      │        │
       └──────┴────────┘
             │
             ▼
        Robot command

8. Face recognition process

The face recognition sequence is:

Camera ON
   │
   ▼
Capture frame
   │
   ▼
Face detection
   │
   ├── No face ──────► Continue scanning
   │
   ▼
Face detected
   │
   ▼
Extract face features
   │
   ▼
Compare with registered faces
   │
   ├── Match
   │     │
   │     ▼
   │   Guest ID
   │
   └── No match
         │
         ▼
      Unknown guest

ESP-WHO is Espressif's framework for face detection and recognition on ESP32-class camera hardware.


9. Face database

Create a simple guest database.

Example

ID Name Department Destination Permission
G001 Arun Manager Office A Yes
G002 Priya HR HR Room Yes
G003 Ravi Engineer Lab Yes
G004 Unknown Reception No

For a real deployment, don't store raw face images in Google Sheets. Store only a pseudonymous guest ID and operational metadata where possible.


10. Robot states

Use a state-machine architecture.

                    ┌───────────────┐
                    │     IDLE      │
                    └───────┬───────┘
                            │
                         Person
                         detected
                            │
                            ▼
                    ┌───────────────┐
                    │ FACE SCAN     │
                    └───────┬───────┘
                            │
                 ┌──────────┴──────────┐
                 │                     │
               Known                Unknown
                 │                     │
                 ▼                     ▼
             GREETING              RECEPTION
                 │
                 ▼
           ASK DESTINATION
                 │
                 ▼
            VOICE INPUT
                 │
                 ▼
             AI AGENT
                 │
          ┌──────┴───────┐
          ▼              ▼
       Valid          Invalid
          │              │
          ▼              ▼
       NAVIGATE       ASK AGAIN
          │
          ▼
       ARRIVED
          │
          ▼
       GREETING
          │
          ▼
         LOG
          │
          ▼
         IDLE

11. Greeting conversation

Known visitor

Robot:

"Good evening, Arun. Welcome to our office."

Robot:

"How may I help you?"

Guest:

"Take me to the laboratory."

Robot:

"Sure. I will guide you to the laboratory."

Then navigation begins.


Unknown visitor

Robot:

"Welcome. I don't recognize you. Please report to the reception desk."

At the same time:

ESP32
  │
  ▼
n8n
  │
  ▼
Telegram
  │
  ▼
ADMIN

Telegram message:

🚨 Unknown visitor detected at reception.
Time: 21:09
Action: Reception assistance required.


12. Voice interaction

There are two practical approaches.

Method 1 — Telegram voice

This is easiest for the prototype.

User
 │
 │ Telegram voice
 ▼
Telegram Bot
 │
 ▼
n8n
 │
 ▼
Speech-to-Text
 │
 ▼
AI Agent
 │
 ▼
Robot Command

n8n has a built-in Telegram integration supporting Telegram messages and file operations, among other operations.


Method 2 — Local microphone

For a more advanced version:

Microphone
    │
    ▼
ESP32
    │
    ▼
Audio stream
    │
    ▼
Speech-to-text service
    │
    ▼
n8n AI Agent

For an academic prototype, I recommend starting with Telegram voice, then adding local microphone processing as Phase 2.


13. AI Agent architecture

The AI agent receives something like:

{
  "visitor_id": "G001",
  "visitor_name": "Arun",
  "voice_text": "Take me to the laboratory",
  "robot_status": "IDLE",
  "battery": 82,
  "location": "Reception"
}

The agent returns structured data:

{
  "intent": "NAVIGATE",
  "destination": "LAB",
  "response": "Sure Arun, I will take you to the laboratory.",
  "priority": "NORMAL"
}

14. AI Agent prompt

Use a constrained prompt rather than allowing the agent to directly invent motor commands.

You are the AI controller for a reception robot.

Your job is to interpret visitor requests and return
a valid robot action.

Available destinations:

RECEPTION
OFFICE_A
OFFICE_B
HR
LAB
CONFERENCE_ROOM
EXIT

Available actions:

GREETING
NAVIGATE
STOP
RETURN_RECEPTION
ASK_CLARIFICATION
HELP
UNKNOWN

Rules:

1. Never invent a destination.
2. Never directly control individual motor pins.
3. If destination is unclear, return ASK_CLARIFICATION.
4. If an emergency/unsafe condition exists, return STOP.
5. Return JSON only.

Output:

{
  "intent": "...",
  "destination": "...",
  "response": "...",
  "priority": "NORMAL|HIGH|EMERGENCY"
}

This is much safer than giving an AI model unrestricted control over the motor driver.


15. n8n master workflow

                 ┌───────────────┐
                 │ ESP32 Webhook │
                 └───────┬───────┘
                         │
                         ▼
                ┌─────────────────┐
                │ Validate JSON   │
                └────────┬────────┘
                         │
                         ▼
                ┌─────────────────┐
                │ Identify Event  │
                └────────┬────────┘
                         │
               ┌─────────┴─────────┐
               ▼                   ▼
        FACE_RECOGNIZED       UNKNOWN_FACE
               │                   │
               ▼                   ▼
          Google Sheets         Telegram
               │                   │
               ▼                   ▼
          AI Agent             Admin Alert
               │
               ▼
          Robot Command
               │
               ▼
         HTTP → ESP32

n8n provides built-in Webhook, Google Sheets, Telegram and AI-agent capabilities, making this architecture possible without writing a conventional backend server.


16. n8n workflow 1 — Face recognition

Nodes

Webhook
   ↓
Set / Edit Fields
   ↓
Switch
   ↓
Google Sheets
   ↓
AI Agent
   ↓
HTTP Request
   ↓
Telegram

Webhook input

{
  "event": "face_recognized",
  "device_id": "ROBOT001",
  "guest_id": "G001",
  "name": "Arun",
  "confidence": 0.91,
  "location": "Reception"
}

17. n8n workflow 2 — Unknown visitor

Webhook
   │
   ▼
IF confidence < threshold
   │
   ▼
Google Sheets
   │
   ▼
Telegram
   │
   ▼
Admin

Telegram message:

🚨 UNKNOWN VISITOR

Robot: ROBOT001
Location: Reception
Time: {{$now}}
Confidence: {{$json.confidence}}

Please check the reception area.

18. n8n workflow 3 — Voice command

Telegram Trigger
       │
       ▼
Get File
       │
       ▼
Speech-to-Text
       │
       ▼
AI Agent
       │
       ▼
Structured Output
       │
       ▼
Switch
   ┌───┼────────────┐
   ▼   ▼            ▼
STOP NAVIGATE     GREETING
   │   │            │
   └───┴─────┬──────┘
             ▼
       HTTP Request
             │
             ▼
           ESP32

The Telegram node supports getting files and sending messages/audio, so it is suitable for this type of automation.


19. Google Sheets database

Create a spreadsheet:

Sheet: Visitors

Guest_ID
Name
Department
Destination
Face_Enabled
Phone
Permission

Sheet: Events

Timestamp
Robot_ID
Guest_ID
Name
Event
Location
Confidence
Destination
Action
Status

Example

2026-08-18 21:09 | ROBOT001 | G001 | Arun |
FACE_RECOGNIZED | Reception | 0.91 |
LAB | NAVIGATE | SUCCESS

20. ThingSpeak dashboard

Create a ThingSpeak channel.

Suggested fields:

Field 1 = Visitor Count
Field 2 = Unknown Visitors
Field 3 = Face Confidence
Field 4 = Battery
Field 5 = Robot State
Field 6 = Distance
Field 7 = Temperature
Field 8 = Navigation Status

ThingSpeak channels can be updated through REST GET or POST requests.