LogoLogo
  • Introduction to the Ebbot Platform
  • Ebbot Platform
  • Bot basics
    • Scenarios
    • Entities
    • Triggers
    • Training center
  • Scenarios
    • Cards and syntax
      • File Input
      • Text card
      • Input
      • Buttons
      • Image
      • File
      • Carousel
      • Location
      • List
      • Contact Agent
      • Rating request
      • Custom component
      • CoBrowsing
    • Transition
    • Card properties
  • AI Insights
    • Setup and Configuration
    • Using the Insights Dashboard
  • EbbotGPT
    • Knowledge
      • Data source transformer
      • Source types
        • File
        • Website scrape
        • Docx file
        • TOPdesk API
        • Sitevision API
        • SharePoint API
          • Create app with Sites.FullControl.All permission in Azure
          • Ebbot SharePoint Postman Guide
        • Confluence API
    • Configurations
    • Persona
    • GPT Evaluation
    • Embedder models
    • EGPT models
  • Custom vocabulary
  • Tutorials
    • Create your first scenario
      • Select a trigger
      • Add bot responses
  • Data Object
  • Release notes
  • For developers
    • Ebbot SDK
    • Safe Exchange API / Vault
    • Subdomain manager
  • EbbotGPT API
  • Chatbot & Live chat
    • Install chat widget
    • Chats API
    • Chat widget API
    • Datasource API
    • Sales tracking for live chat
    • Webhook
      • Incoming webhooks
      • Outgoing webhooks
    • SMS API
      • Authentication
      • Send SMS
      • Errors
      • Encoding
    • Python components
    • Intent detection (NLP)
  • Product guides
    • Product data feeds
    • Install guide
    • Product guide events
      • Product guide user events
      • Received events
      • Send events
    • API & webhooks
    • GA4 integration
    • Klaviyo integration
  • Messenger marketing
    • Install popup
    • API & webhooks
  • Widget cookies & storage
  • For chat agents
    • Ebbot Chat
      • Settings modal
      • Queue
      • Topbar Stats
      • Menu
        • Power-Ups!
        • Quick Replies
  • INTEGRATIONS
    • Ebbot Live Chat in Zendesk
      • Setup guide
    • Active Directory - SAML
    • Configure SAML in Azure
Powered by GitBook
On this page
  • Button card
  • Example usage of stop property

Was this helpful?

  1. Scenarios
  2. Cards and syntax

Buttons

PreviousInputNextImage

Last updated 4 years ago

Was this helpful?

Button card

The button card can be used to link to another scenario, an URL or to assign a value to a variable. The conversation will be paused once a button card is active and will continue when the user has clicked on any button.

Syntax

[
		{
		"name": "<STATE_NAME>",
		"component": "ebbot_url",
		"properties": {
			"description": "<TEXT_MESSAGE>",
			"buttons": [
				{
					"label": "<BUTTON_TEXT>",
					"type": "variable",
					"name": "<VARIABLE_NAME>",
					"value": "<VARIABLE_VALUE>"
				},
				{
					"label": "<BUTTON_TEXTT>",
					"url": "<URL>",
				},
				{
					"label": "<BUTTON_TEXT>",
					"type": "scenario",
					"next": {
						"scenario": "<SCENARIO_NAME>"
					}
				}
			]
		}
	}
]

Example Usage

[
		{
		"name": "state_1613141123674",
		"component": "ebbot_url",
		"properties": {
			"description": "Please choose your favorite color",
			"buttons": [
				{
					"label": "Green",
					"type": "variable",
					"name": "color",
					"value": "green"
				},
				{
					"label": "Red",
					"type": "variable",
					"name": "color",
					"value": "red"
				},
				{
					"label": "Blue",
					"type": "variable",
					"name": "color",
					"value": "blue"
				}
			]
		}
	}
]

If you have the button card in the middle the remaining cards will be played except if the user clicks on a button thats leads to another scenario or a state. Then the remaining cards in the previous scenario will be discarded.

You can always discard the remaining cards on a button click regardless of the type if you pass the stop property.

Property

Type

Description

stop

Boolean

Stop the remaining cards to be played. Default value: false

Example usage of stop property

[
	{
		"id": "83879772-8d38-4a5c-9204-67fc9a7e0865",
		"name": "state_1613156908482",
		"component": "ebbot_url",
		"properties": {
			"description": "Favorite color",
			"stop": true,
			"buttons": [
				{
					"label": "green",
					"type": "variable",
					"name": "color",
					"value": "green"
				}
			]
		}
	}
]