baptisteArno / typebot.io

💬 Typebot is a powerful chatbot builder that you can self-host.
https://typebot.io
Other
7.59k stars 2.11k forks source link

Allow embed to have multiple events and exit points (like multiple if else) #1814

Open anilgulecha opened 1 month ago

anilgulecha commented 1 month ago

Currently embed only allows for a single event (and the single variable) that comes from it. We're working on a usecase where the application fires multiple events within the embed.

Current workaround: we fire the data via single event , and then try to parse the data variable and setup conditional logic. It is cumbersome, including parsing of JSON.

It would be ideal, if we can just fire multiple events, and in each case, set a certain different variable.

anilgulecha commented 1 month ago

@baptisteArno We can help in implementing this - is there forge documentation for creating/modifying primary blocks? It currently looks like the documentation only covers the integration blocks.

anilgulecha commented 1 month ago

Optionally, we can proceed if forge can document how we can have multiple continue points (edges?) basis an embed, we can build an integration using the cal.com example (which currently only showcases single exit/edge point).