A step-by-step chat questionnaire that remembers the conversation

The scenario walks people through questions in Telegram, keeps the conversation state in supabase and resumes at exactly the step where it stopped. Completed answers are stored in a history table.

  • The dialogue holds together: the bot knows where every person left off
  • People can walk away and come back — the conversation resumes
  • Every completed set of answers is saved to history
  • One scenario serves any number of people at once
Supabase

How it works

To connect Telegram and Supabase, you don't need a developer: a ready-made scenario links them in minutes.

  1. Starts when: When Telegram Message Received
  2. Then: Get Session from Supabase
  3. Then: Evaluate Feedback Logic
  4. Check: Check If Record Exists
  5. If yes: Update Session in Supabase
  6. Check: Check for User Input
  7. If yes: Log Reading History in Supabase
  8. Then: Send Telegram Reply
  9. If no: Insert Session into Supabase
  10. Check: Check If Run Complete

You can launch this Telegram + Supabase integration in Scriptera: describe the task in plain words — the scenario is built, launched and monitored for you.