{
  "telebot": 1,
  "name": "Pizza order",
  "trigger": {
    "type": "command",
    "command": "/order"
  },
  "blocks": [
    {
      "id": "welcome",
      "type": "text",
      "text": "Hi {{first_name}}! Let's get your pizza ready.",
      "next": "pick_size"
    },
    {
      "id": "pick_size",
      "type": "buttons",
      "text": "Which size would you like?",
      "buttons": [
        {
          "text": "Small",
          "next": "ask_address"
        },
        {
          "text": "Large",
          "next": "ask_address"
        },
        {
          "text": "Show me the menu",
          "next": "menu_link"
        }
      ]
    },
    {
      "id": "menu_link",
      "type": "link",
      "text": "Here is our full menu.",
      "label": "Open the menu",
      "url": "https://example.com/menu",
      "next": "pick_size"
    },
    {
      "id": "ask_address",
      "type": "text",
      "text": "Where should we deliver it? Please send your address.",
      "waitForReply": true,
      "replyVar": "address",
      "next": "thinking"
    },
    {
      "id": "thinking",
      "type": "delay",
      "seconds": 2,
      "next": "confirm"
    },
    {
      "id": "confirm",
      "type": "text",
      "text": "Thank you, {{first_name}}! Your pizza is on its way to: {{address}}"
    }
  ]
}
