Skip to content

Instantly share code, notes, and snippets.

View bastienbot's full-sized avatar
✌️

Bastien Botella bastienbot

✌️
View GitHub Profile
start:
say "Hello, IT, I'm Roybot 🤖"
goto offandon
offandon:
say "Have you tried turning it off and on again ?"
say Question(
button_type="quick_reply",
buttons = [
Button("Yes", accepts=["yep", "sure", "ye", "yeah"]) as btnYes,
start:
// If the user doesn't exist, we create a new id using the uuid app
if (!user_id) remember user_id = Fn("utils/uuid", version="v4")
say "Hi, let's subscribe to an awesome newsletter 💌 !"
do Fn("google/analytics", method="sendEvent", params={"user_id": user_id,"category": "csml_nl_chatbot","action": "flow_process","label": "start"})
goto firstname
firstname:
say "What's your firstname?"
hold
start:
say "Hi, let's subscribe to an awesome newsletter 💌 !"
// Starting event should go here
goto firstname
firstname:
say "What's your firstname?"
hold
remember firstname = event
// First flow event
start:
say "Hello stranger, I'm here to help you register to an awesome event 🥳"
goto name
name:
say Typing(2000)
say "My name is Eventobot, what's yours ?"
hold
remember firstname = event
say "Nice to meet you {{firstname}} 😎"
start:
say "👋 Salut ! Je suis Confibot, je suis ici pour donner la patate🥔 pendant le confinement."
say Typing(2000)
say "Je te donne un programme de sport sur mesure !"
if (!choix) {
goto choix
} else {
goto video
}