WorkflowRedisOpen

Telegram Workflow: Redis, Code and Condition

Triggered manually or by an app event. Connects Code, Condition, Execute Workflow, Redis, Stop And Error, Switch, Telegram. 1. Check Interaction State For Incoming Message [Learn more about the telegram trigger]({{ $env.WEBHOOKURL }} This is an example of a state-based agent - the technique commonly known as a finite-state machine. This is a great way to really control the flow and direction of th

Front matter
name: Telegram Workflow
description: Triggered manually or by an app event. Connects Code, Condition, Execute Workflow, Redis, Stop And Error, Switch, Telegram. ## 1. Check Interaction State For Incoming Message [Learn more about the telegram trigger]({{ $env.WEBHOOK_URL }} This is an example of a state-based agent - the technique commonly known as a finite-state machine. This is a great way to really control the flow and direction of the conversation where there are requirements to collect data or perform steps in sequence. To manage the session state, we can use Redis and the session key will be the user's number. ## 2. Onboarding Agent to Validate C
category: Automation
kind: Workflow
software: Code|Condition|Execute Workflow|Redis|Stop And Error|Switch|Telegram

Telegram Workflow

Triggered manually or by an app event. Connects Code, Condition, Execute Workflow, Redis, Stop And Error, Switch, Telegram. ## 1. Check Interaction State For Incoming Message [Learn more about the telegram trigger]({{ $env.WEBHOOK_URL }}

This is an example of a state-based agent - the technique commonly known as a finite-state machine. This is a great way to really control the flow and direction of the conversation where there are requirements to collect data or perform steps in sequence. To manage the session state, we can use Redis and the session key will be the user's number. ## 2. Onboarding Agent to Validate C

Steps

  • Human Handoff using Send and Wait (telegram)
  • Set Interaction to Bot (redis)
  • Set Interaction to Human (redis)
  • Get Interaction State (redis)
  • Model (noOp)
  • Memory (noOp)
  • Handoff Subworkflow (executeWorkflowTrigger)
  • Telegram Trigger (telegramTrigger)
  • Send Response (telegram)
  • Switch Interaction (switch)
  • Information Extractor (noOp)
  • OpenAI Chat Model (noOp)
  • With Defaults (code)
  • Has All Criteria? (if)
  • Onboarding Agent (noOp)
  • Get Onboarding Chat History (redis)
  • After Sales Agent (noOp)
  • Memory1 (noOp)
  • Model1 (noOp)
  • Handoff Tool (noOp)
  • Sticky Note (stickyNote)
  • Sticky Note1 (stickyNote)
  • Sticky Note2 (stickyNote)
  • Handoff Subworkflow1 (executeWorkflow)
  • Sticky Note3 (stickyNote)
  • Sticky Note4 (stickyNote)
  • Sticky Note5 (stickyNote)
  • Sticky Note6 (stickyNote)
  • Sticky Note7 (stickyNote)
  • Send Response2 (telegram)
  • Memory2 (noOp)
  • Update Agent Memory (noOp)
  • Send Response3 (telegram)
  • Get Canned Response (telegram)
  • Notify user (telegram)
  • Sticky Note8 (stickyNote)
  • Memory3 (noOp)
  • Update Agent Memory1 (noOp)
  • Continue Conversation (telegram)
  • Error Handler (stopAndError)

Import

Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).

Source: https://github.com/Zie619/n8n-workflows/blob/main/Telegram/0815_Telegram_Code_Update_Triggered.md

Author: Zie619, n8n workflow collection. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.