Pipelines
Pipelines
A pipeline is a directed data processing graph. It links a data source (trigger), processing logic (AI, conditions, transformations), and output actions into a single automated chain.
Concept
Trigger ──→ AI Classify ──[sales]──→ Webhook Call ──→ Reply
──[support]──→ Telegram Send ──→ Reply
──[unknown]──→ Reply (default)
Each node receives data through an input port, processes it, and passes the result through named output ports to the next nodes. Branches execute in parallel.
Creating a simple pipeline
Pipelines → Create
Set a name and description. Choose steps from the list of active integrations.
Add a source
As the first step, choose a widget or connector — it becomes the trigger.
Add an AI handler
As the second step, choose an AI integration. The system prompt can be set in the pipeline settings.
Save and activate
The status toggle enables/disables processing. An inactive pipeline does not receive requests.
Visual Flow Builder
For complex pipelines with branches, conditions, and transformations, open the Flow Builder — the Open Builder button on the pipeline page.
Simple pipeline
Widget → AI Chat → Reply
Ready in 1 minute
Ready in 1 minute
Context router
Widget → AI Classify → N branches
Requires Flow Builder
Requires Flow Builder
Multi-level
Widget → Condition → AI Extract → 1C Request → Reply
Full graph
Full graph
Multi-channel
Webhook → Transform → AI Chat → Telegram + Reply
Fan-out
Fan-out
Execution context and variables
During pipeline execution each node works with a context — a set of named variables.
Variables can be used in templates via {{variable}}:
| Variable | Description |
|---|---|
{{message}} | Original user message |
{{reply}} | AI response (after AI Chat node) |
{{session_id}} | User session ID |
{{detected_intent}} | Detected intent (after AI Classify) |
{{extracted_*}} | Extracted fields (after AI Extract) |
{{webhook_response}} | External service response |
{{onec_response}} | 1C response |
The Transform node lets you create and modify variables manually:
Transform nodegreeting = "Hello, {{extracted_name}}!"
summary = "Request: {{message}} | Topic: {{detected_intent}}"
Reports and logs
Each pipeline page displays:
- Statistics — sessions, messages, token counts
- Dialog list — all sessions sorted by time
- Dialog viewer — each message with role and timestamp
- Prompt editor — update the system prompt based on real conversations