Lesson 7. Integration Diagrams — How to Read and Understand#
Why This Matters#
An integration diagram is a visual representation of how data flows between services. Being able to read diagrams helps you understand project logic and communicate with developers.
Key Idea#
Integration diagram = map of data flow
You see: where data comes from, what happens to it, where it goes.
Diagram Elements#
1. Blocks (services)
Rectangles or service icons
Examples:
-
📱 Telegram Bot
-
📊 Google Sheets
-
💼 CRM (Bitrix24)
-
🤖 AI Agent (Zapier)
2. Arrows (data flow)
Arrows show the direction of data movement
Examples:
-
Telegram → AI Agent (client messages the bot)
-
AI Agent → Google Sheets (bot writes data)
3. Labels (what's transmitted)
Text above the arrow describes the data
Examples:
-
"Name, phone, service"
-
"Webhook: new order"
-
"API: create lead"
Example Diagram 1: FAQ Bot#
What happens:
-
Client asks the bot a question in Telegram
-
Bot (AI agent in Zapier) receives the question
-
Agent searches for the answer in the knowledge base
-
Agent finds the answer and sends it to the client
Example Diagram 2: Lead Qualification#
What happens:
-
Client messages the bot
-
Agent asks questions (task, budget, timeline)
-
Client responds
-
Agent evaluates the lead
-
Agent writes data to Google Sheets
-
Manager sees the new lead and contacts the client
Example Diagram 3: CRM Integration#
What happens:
-
Client fills out a form on the website (name, phone, task)
-
Form sends a webhook to automation (n8n or Zapier)
-
Automation passes data to the AI agent
-
AI agent evaluates the lead (hot/warm/cold)
-
Automation creates a lead in CRM (Bitrix24)
-
Automation sends a notification to the manager in Telegram
How to Read a Diagram (Algorithm)#
-
Find the start — where data comes from (client, form, website)
-
Follow the arrows — where data moves
-
Read the labels — what's transmitted at each step
-
Find the end — where data ends up or what happens in the end
Practice: Diagram Analysis#
Diagram:
Analysis questions:
-
Where does the process start? → Client messages the bot in Telegram
-
What does the AI agent do? → Collects data (name, phone, service)
-
Where is the data recorded? → In Google Sheets
-
Who receives the notification? → Admin by email
Answers:
Client messages the bot → bot collects data → bot writes to Google Sheets → admin receives email notification
Test Your Knowledge#
Quiz: Integration Diagrams
Flashcards
Module Practice: Integration Analysis#
Task 1: Identify the Integration Type#
Scenarios:
-
Bot writes a request to Google Sheets → this is API (POST request)
-
Payment system notifies the bot about payment → this is Webhook
-
Client logs into service via Google account → this is OAuth 2.0
-
Bot reads data from Airtable → this is API (GET request)
Task 2: Read JSON#
Given JSON:
{
"client_id": 42,
"name": "Olga",
"phone": "+7-999-555-66-77",
"services": ["Manicure", "Pedicure"],
"total_price": 4500
}
Questions:
-
What is the client's name? → Olga
-
What is the phone number? → +7-999-555-66-77
-
What services were ordered? → Manicure and Pedicure
-
Total price? → 4500 rubles
Task 3: Draw an Integration Diagram#
Task:
Client submits a request on the website (form). Data is sent to CRM (Bitrix24) and the manager receives a notification in Telegram at the same time.
Your diagram:
Check:
-
Start: website form
-
What's transmitted: name, phone, task
-
Where to: CRM and Telegram
-
How: via webhook and automation
Task 4: Zapier Practice — Connect Google Sheets#
Task:
Take one of the agents created in Module 4 (FAQ bot or qualification agent) and set up integration with Google Sheets for recording data.
What to do:
-
Create a table in Google Sheets:
-
Title: "Leads [Your niche]"
-
Columns: Date, Name, Contact, Question/Task, Status
-
-
Open your agent in Zapier (from Module 4)
-
Connect the Google Sheets plugin:
-
Go to Skills → Add Skill → Plugins
-
Find Google Sheets (or equivalent)
-
Configure credentials (grant access to the spreadsheet)
-
Specify the spreadsheet and sheet
-
-
Update the prompt:
- Add instruction: "After talking with the client, write the data to Google Sheets: Date, Name, Contact, Question/Task, Status"
-
Test:
-
Message the bot in Telegram
-
Verify that data was written to the table
-
Checklist:
-
Table created (correct columns)
-
Google Sheets integration connected to chatbot/Zap in Zapier
-
Prompt updated (instruction for writing data)
-
Testing passed (data was written)
-
Data format is correct (date, name, contact are correct)
What you'll get:
A working "Zapier → Google Sheets" integration. All bot conversations will now be automatically recorded in the table for analytics.
Time: 20-30 minutes
Templates and Artifacts#
Term Glossary (Cheat Sheet)#
API — way for services to communicate (request → response)
Webhook — notification from a service when something happens
JSON — data format as "key: value" pairs
Authorization — way to prove you have access (key, token)
Integration — connection between services for data exchange
Database — structured data storage
OAuth — authorization via third-party service (e.g., "Sign in with Google")
GET — request to retrieve data
POST — request to send data
Token (Bearer Token) — temporary key for API access
Checklist: How to Understand an Integration Diagram#
-
Find the start (where data comes from)
-
Follow the arrows (where data goes)
-
Read the labels (what's transmitted)
-
Find the endpoint (where data ends up or what happens)
-
Identify integration types (API, webhook, OAuth)
Simple Integration Template#
Example filled in:
Review Questions#
-
What is an integration and why is it needed?
-
How does API differ from Webhook?
-
What is JSON and where is it used?
-
What types of API requests exist? Give examples.
-
What is authorization and what types are there?
-
Why are Google Sheets convenient as a database for beginners?
-
How do you read an integration diagram?
-
What happens when a client pays for an order and the system sends a webhook?
Correct answers:
-
Integration is a connection between services for automatic data exchange. It's needed so you don't have to copy data manually.
-
API is when you ask the service ("show me data"), Webhook is when the service notifies you ("an event occurred").
-
JSON is a format for structured data as "key: value" pairs. Used in APIs for transmitting information.
-
GET (retrieve data), POST (send data), PUT (update), DELETE (remove). Example: POST to add a client to the database.
-
Authorization is a way to confirm access to the API. Types: API Key, Bearer Token, OAuth.
-
Google Sheets are free, intuitive (like Excel), easy to integrate, and accessible to the team.
-
Find the start (data source) → follow the arrows → read the labels (what's transmitted) → find the end (where data ends up).
-
The payment system (e.g., Stripe) sends a webhook to your server with payment data. The server receives the notification and performs an action (e.g., sends receipt to client and notification to manager).
Module Summary#
You've learned:
-
what integrations are and why they're needed
-
how API and Webhook work
-
what JSON is and how to read it
-
types of authorization (API Key, Bearer Token, OAuth)
-
how to use Google Sheets, Airtable, Notion as databases
-
how to read integration diagrams
You can:
-
explain how data moves between services
-
read simple JSON
-
analyze an integration diagram
-
ask the right questions to a developer
Next step: Module 7 — how to write prompts and technical specifications for AI agents.