{
  "name": "BotButtons",
  "config": {
    "arguments": {
      "Player": {
        "collection": "players"
      }
    }
  },
  "states": {
    "_state_0": {
      "name": "START",
      "view": {
        "position": {
          "x": -1034,
          "y": -393
        }
      },
      "comments": [
        "When a new session is created, the START state starts."
      ],
      "run": [],
      "listen": [
        "buttons_tPz6jjsTOy"
      ],
      "path": [
        "start"
      ]
    },
    "_state_1": {
      "name": "QUIT",
      "view": {
        "position": {
          "x": 179,
          "y": 371
        }
      },
      "comments": [],
      "run": [
        "_action_1"
      ],
      "listen": [],
      "path": [
        "start"
      ]
    },
    "_state_HgHvMzIP": {
      "name": "InlineDone",
      "view": {
        "position": {
          "x": -226,
          "y": -2
        }
      },
      "run": [
        "sendMessage_5f_FtzKVmu",
        "next_TFp3uxvCXK"
      ],
      "listen": [],
      "path": [
        "start"
      ]
    },
    "_state_rLhoJ_Ar": {
      "name": "KeyboardDone",
      "view": {
        "position": {
          "x": -233,
          "y": 456
        }
      },
      "run": [
        "sendMessage_62nxq6BZZ3",
        "next_bSv9i29FNw"
      ],
      "listen": [],
      "path": [
        "start"
      ]
    },
    "_state_cmyOAIMc": {
      "name": "Inline",
      "view": {
        "position": {
          "x": -634,
          "y": -293
        }
      },
      "run": [
        "sendMessage_rbSbmfXrL9"
      ],
      "listen": [
        "buttons_TfO0f059rG"
      ],
      "path": [
        "start"
      ]
    },
    "_state_Ls2j8ifE": {
      "name": "Keyboard",
      "view": {
        "position": {
          "x": -632,
          "y": 166
        }
      },
      "run": [
        "sendMessage_Dn3VeC9Orz"
      ],
      "listen": [
        "buttons_vplI0MSacE"
      ],
      "path": [
        "start"
      ]
    }
  },
  "actions": {
    "_action_1": {
      "action": "quit",
      "name": "quit_1",
      "plugin": "control",
      "payload": null,
      "mode": "run"
    },
    "buttons_S81ZTf25t9": {
      "action": "buttons",
      "plugin": "telegram",
      "mode": "listen",
      "name": "buttons_1",
      "payload": {
        "agent": "StageManager",
        "to": "Player",
        "type": "inline",
        "message": "Hier seind deine inline buttons.",
        "buttons": [
          [
            {
              "label": "Apfel",
              "next": "InlineDone"
            },
            {
              "label": "Birne",
              "respond": [
                {
                  "mode": "respond",
                  "text": "_content_IQ2eP7dfC4"
                },
                {
                  "mode": "respond",
                  "text": "_content_rRNaAbXOeL"
                },
                {
                  "mode": "respond",
                  "text": "_content_F-wYdMHzZt"
                }
              ],
              "next": "InlineDone"
            }
          ],
          [
            {
              "label": "Pflaume",
              "respond": [
                {
                  "mode": "respond",
                  "text": "_content_4pbyNkKutK"
                },
                {
                  "mode": "respond",
                  "text": "_content_8lg2IjBeBn"
                },
                {
                  "mode": "respond",
                  "text": "_content_jggttnYNDX"
                },
                {
                  "mode": "respond",
                  "text": "_content_Y1sfxqbq69"
                },
                {
                  "mode": "respond",
                  "text": "_content_Z6-K3h5CP2"
                }
              ]
            }
          ]
        ]
      }
    },
    "sendMessage_5f_FtzKVmu": {
      "action": "sendMessage",
      "plugin": "telegram",
      "mode": "run",
      "name": "sendMessage_1",
      "payload": {
        "agent": "telegram.bots.StageManager",
        "to": "Player",
        "text": "_content_zCURz842z1"
      }
    },
    "buttons_2sjVNfqbgh": {
      "action": "buttons",
      "plugin": "telegram",
      "mode": "listen",
      "name": "buttons_1",
      "payload": {
        "agent": "StageManager",
        "to": "Player",
        "type": "keyboard",
        "message": "Hier ist dein Keyboard.",
        "buttons": [
          [
            {
              "label": "Apfel",
              "next": "KeyboardDone"
            }
          ],
          [
            {
              "label": "Birne",
              "respond": [
                {
                  "mode": "respond",
                  "text": "_content_f1ZLhqhs-o"
                },
                {
                  "mode": "respond",
                  "text": "_content_fF_lOWalJ8"
                },
                {
                  "mode": "respond",
                  "text": "_content_WGLr43HVHe"
                }
              ],
              "next": "KeyboardDone"
            },
            {
              "label": "Pflaume",
              "respond": [
                {
                  "mode": "respond",
                  "text": "_content_F3r2DL1NDJ"
                },
                {
                  "mode": "respond",
                  "text": "_content_8UYlmexHUL"
                },
                {
                  "mode": "respond",
                  "text": "_content_ZtYWRwwrrq"
                },
                {
                  "mode": "respond",
                  "text": "_content_9_ziNOSlyC"
                },
                {
                  "mode": "respond",
                  "text": "_content_oFmTSZ8Jbf"
                }
              ]
            }
          ]
        ]
      }
    },
    "next_TFp3uxvCXK": {
      "action": "next",
      "plugin": "control",
      "mode": "run",
      "name": "next_1",
      "payload": {
        "next": "QUIT"
      }
    },
    "next_bSv9i29FNw": {
      "action": "next",
      "plugin": "control",
      "mode": "run",
      "name": "next_1",
      "payload": {
        "next": "QUIT"
      }
    },
    "sendMessage_62nxq6BZZ3": {
      "action": "sendMessage",
      "plugin": "telegram",
      "mode": "run",
      "name": "sendMessage_1",
      "payload": {
        "agent": "telegram.bots.StageManager",
        "to": "Player",
        "text": "_content_PEl1SNSkAp"
      }
    },
    "sendMessage_LoR_-2fkJg": {
      "action": "sendMessage",
      "plugin": "telegram",
      "mode": "run",
      "name": "sendMessage_1",
      "payload": {
        "agent": "telegram.bots.StageManager",
        "to": "Player",
        "text": "_content_NSgpvWJzQ6"
      }
    },
    "sendMessage_JUcnG66Zk9": {
      "action": "sendMessage",
      "plugin": "telegram",
      "mode": "run",
      "name": "sendMessage_1",
      "payload": {
        "agent": "telegram.bots.StageManager",
        "to": "Player",
        "text": "_content_374Tmnd1v6"
      }
    },
    "buttons_7E8qtQLhFX": {
      "action": "buttons",
      "plugin": "telegram",
      "mode": "listen",
      "name": "buttons_1",
      "payload": {
        "agent": "StageManager",
        "to": "Player",
        "type": "inline",
        "message": "Would you like to try more inline buttons, or would you like me to show you keyboard buttons?",
        "buttons": [
          [
            {
              "label": "Inline bitte",
              "respond": [
                {
                  "mode": "respond",
                  "text": "_content_56dvvBPhU3"
                }
              ],
              "next": "Inline1"
            },
            {
              "label": "Keyboard buttons!",
              "respond": [
                {
                  "mode": "respond",
                  "text": "_content_VnimlKZHuV"
                }
              ],
              "next": "Keyboard1"
            }
          ]
        ]
      }
    },
    "buttons_tPz6jjsTOy": {
      "action": "buttons",
      "plugin": "telegram",
      "mode": "listen",
      "name": "buttons_1",
      "payload": {
        "agent": "StageManager",
        "to": "Player",
        "type": "inline",
        "message": "Would you like to try more inline buttons, or would you like me to show you keyboard buttons?",
        "buttons": [
          [
            {
              "label": "Inline please",
              "respond": [
                {
                  "mode": "respond",
                  "text": "_content_bcbF65O4uT"
                }
              ],
              "next": "Inline"
            },
            {
              "label": "Keyboard buttons",
              "respond": [
                {
                  "mode": "respond",
                  "text": "_content_-dPIu6EXmW"
                }
              ],
              "next": "Keyboard"
            }
          ]
        ]
      }
    },
    "sendMessage_rbSbmfXrL9": {
      "action": "sendMessage",
      "plugin": "telegram",
      "mode": "run",
      "name": "sendMessage_1",
      "payload": {
        "agent": "telegram.bots.StageManager",
        "to": "Player",
        "text": "_content_4fUZvSXgpK"
      }
    },
    "buttons_TfO0f059rG": {
      "action": "buttons",
      "plugin": "telegram",
      "mode": "listen",
      "name": "buttons_1",
      "payload": {
        "agent": "StageManager",
        "to": "Player",
        "type": "inline",
        "message": "More Inline Buttons",
        "buttons": [
          [
            {
              "label": "Apple",
              "next": "InlineDone"
            },
            {
              "label": "Pear",
              "respond": [
                {
                  "mode": "respond",
                  "text": "_content_F_IrOsfUEo"
                },
                {
                  "mode": "respond",
                  "text": "_content_Swi_TH1Ooe"
                },
                {
                  "mode": "respond",
                  "text": "_content_JMUXhvXlMe"
                }
              ],
              "next": "InlineDone"
            }
          ],
          [
            {
              "label": "Plum",
              "respond": [
                {
                  "mode": "respond",
                  "text": "_content_kSYkqiBj7R"
                },
                {
                  "mode": "respond",
                  "text": "_content_eBGFmlJSRl"
                },
                {
                  "mode": "respond",
                  "text": "_content_Fpnl5OeQyW"
                },
                {
                  "mode": "respond",
                  "text": "_content_3NJZeTFwpW"
                },
                {
                  "mode": "respond",
                  "text": "_content_qauXPrIaK0"
                }
              ]
            }
          ]
        ]
      }
    },
    "buttons_muLtrCBGLC": {
      "action": "buttons",
      "plugin": "telegram",
      "mode": "listen",
      "name": "buttons_2",
      "payload": {
        "to": "Player",
        "message": "",
        "buttons": [
          {}
        ]
      }
    },
    "sendMessage_Dn3VeC9Orz": {
      "action": "sendMessage",
      "plugin": "telegram",
      "mode": "run",
      "name": "sendMessage_1",
      "payload": {
        "agent": "telegram.bots.StageManager",
        "to": "Player",
        "text": "_content_XlDCGSgvr0"
      }
    },
    "buttons_vplI0MSacE": {
      "action": "buttons",
      "plugin": "telegram",
      "mode": "listen",
      "name": "buttons_1",
      "payload": {
        "agent": "StageManager",
        "to": "Player",
        "type": "keyboard",
        "message": "Take a look at your Keyboard",
        "buttons": [
          [
            {
              "label": "Apple",
              "next": "KeyboardDone"
            }
          ],
          [
            {
              "label": "Pear",
              "respond": [
                {
                  "mode": "respond",
                  "text": "_content_Mr_BgMpX1s"
                },
                {
                  "mode": "respond",
                  "text": "_content_cFmBoyT_6C"
                },
                {
                  "mode": "respond",
                  "text": "_content_zy_-z_839Z"
                }
              ],
              "next": "KeyboardDone"
            },
            {
              "label": "Plum",
              "respond": [
                {
                  "mode": "respond",
                  "text": "_content_kp5rGCJTVM"
                },
                {
                  "mode": "respond",
                  "text": "_content_qgDlu8KNM1"
                },
                {
                  "mode": "respond",
                  "text": "_content_Ad5cYfgtcO"
                },
                {
                  "mode": "respond",
                  "text": "_content_swM5XV5BNy"
                },
                {
                  "mode": "respond",
                  "text": "_content_DpIHgv0yRN"
                }
              ]
            }
          ]
        ]
      }
    },
    "onMessage_DWYs2MJdQd": {
      "action": "onMessage",
      "plugin": "telegram",
      "mode": "listen",
      "name": "onMessage_1",
      "payload": {
        "agent": "telegram.bots.StageManager",
        "chat": "Player",
        "else": {
          "next": "LogMe"
        }
      }
    },
    "log_z-q6CYLgqE": {
      "action": "log",
      "plugin": "control",
      "mode": "run",
      "name": "log_1",
      "payload": {
        "level": "info",
        "message": "[[state.OnMsg.onMessage_1]]"
      }
    }
  },
  "contents": {
    "_content_4pbyNkKutK": {
      "de": "Okay"
    },
    "_content_8lg2IjBeBn": {
      "de": "Hier passiert nichts"
    },
    "_content_F-wYdMHzZt": {
      "de": "Jetzt gehts weiter"
    },
    "_content_IQ2eP7dfC4": {
      "de": "Moment"
    },
    "_content_Y1sfxqbq69": {
      "de": "Egal wie oft du klickst"
    },
    "_content_Z6-K3h5CP2": {
      "de": "Beim nächsten mal gibt es nicht mal eine Antwort von mir"
    },
    "_content_jggttnYNDX": {
      "de": "Es wird nicht weiter gehen"
    },
    "_content_rRNaAbXOeL": {
      "de": "Warte"
    },
    "_content_zCURz842z1": {
      "de": "[[state.Inline.buttons_1.match]], Got It. The Level ends here."
    },
    "_content_8UYlmexHUL": {
      "de": "Hier passiert nichts"
    },
    "_content_9_ziNOSlyC": {
      "de": "Egal wie oft du klickst"
    },
    "_content_F3r2DL1NDJ": {
      "de": "Okay"
    },
    "_content_WGLr43HVHe": {
      "de": "Jetzt gehts weiter"
    },
    "_content_ZtYWRwwrrq": {
      "de": "Es wird nicht weiter gehen"
    },
    "_content_f1ZLhqhs-o": {
      "de": "Moment"
    },
    "_content_fF_lOWalJ8": {
      "de": "Warte"
    },
    "_content_oFmTSZ8Jbf": {
      "de": "Beim nächsten mal gibt es nicht mal eine Antwort von mir"
    },
    "_content_PEl1SNSkAp": {
      "de": "[[state.Keyboard.buttons_1.match]], Got It. The Level ends here.\n\nThe Button Keyboard is removed once you leave the respective State."
    },
    "_content_NSgpvWJzQ6": {
      "de": "Du kannst immer wieder auf den selben Buton klicken und ich schicke dir die nächste Antwort. Nur bei Apfel geht es direkt weiter."
    },
    "_content_374Tmnd1v6": {
      "de": "Du kannst nach kurzer Zeit wieder auf den selben Buton klicken und ich schicke dir die nächste Antwort. Nur bei Apfel geht es direkt weiter."
    },
    "_content_bcbF65O4uT": {
      "de": "It's my pleasure."
    },
    "_content_-dPIu6EXmW": {
      "de": "Alright!"
    },
    "_content_56dvvBPhU3": {
      "de": "Gerne doch"
    },
    "_content_VnimlKZHuV": {
      "de": "Alles klar."
    },
    "_content_4fUZvSXgpK": {
      "de": "You can click on the same button again after a short time and I will send you the next answer. Only if you click on **apple** I will goto the next state immediately."
    },
    "_content_F_IrOsfUEo": {
      "de": "Wait"
    },
    "_content_Swi_TH1Ooe": {
      "de": "Once more"
    },
    "_content_JMUXhvXlMe": {
      "de": "Okay, let's go on"
    },
    "_content_kSYkqiBj7R": {
      "de": "Okay"
    },
    "_content_eBGFmlJSRl": {
      "de": "Nothing happening"
    },
    "_content_Fpnl5OeQyW": {
      "de": "It will never go on"
    },
    "_content_3NJZeTFwpW": {
      "de": "Doesn't matter how often you click me"
    },
    "_content_qauXPrIaK0": {
      "de": "Next time I'm not even gonna answer at all"
    },
    "_content_XlDCGSgvr0": {
      "de": "You can click on the same button again  and I will send you the next answer. Only if you click on **apple** I will goto the next state immediately."
    },
    "_content_Mr_BgMpX1s": {
      "de": "Wait"
    },
    "_content_cFmBoyT_6C": {
      "de": "Once more"
    },
    "_content_zy_-z_839Z": {
      "de": "Okay, let's go on"
    },
    "_content_kp5rGCJTVM": {
      "de": "Okay"
    },
    "_content_qgDlu8KNM1": {
      "de": "Nothing happening"
    },
    "_content_Ad5cYfgtcO": {
      "de": "It will never go on"
    },
    "_content_swM5XV5BNy": {
      "de": "Doesn't matter how often you click me"
    },
    "_content_DpIHgv0yRN": {
      "de": "Next time I'm not even gonna answer at all"
    }
  },
  "created_at": "2023-08-14T11:48:52.890Z",
  "modified_at": "2023-11-07T11:21:23.173Z",
  "created_by": "lasse",
  "modified_by": "Leonardo",
  "created_with": "2.3.0",
  "modified_with": "2.3.0",
  "inserted": {
    "states": {},
    "actions": {},
    "contents": {
      "_content_4fUZvSXgpK": {
        "de": "You can click on the same button again after a short time and I will send you the next answer. Only if you click on **apple** I will goto the next state immediately."
      }
    }
  },
  "paths": [
    [
      "start"
    ]
  ],
  "removed": {
    "states": [],
    "actions": [],
    "contents": []
  },
  "updated": {
    "states": {},
    "actions": {
      "sendMessage_rbSbmfXrL9": {
        "payload": {
          "agent": "telegram.bots.StageManager",
          "to": "Player",
          "text": "_content_4fUZvSXgpK"
        }
      }
    },
    "contents": {}
  },
  "instances": 1,
  "_id": "rmWKnZe4oNVPxIbp"
}