Konverse AI Developer Hub
  • Konverse AI Developer Hub
  • Getting Started
    • Authentication
    • Errors
    • Rate Limit
  • Webhooks
    • Webhook Endpoints
  • Platform
    • Embedded Functions
      • Send Text Message
      • Send Quick Reply
      • Set Variables
      • Send Choice
      • Send Cards
      • Stop Propagation
      • Query a Dataset
      • Jump To Story
      • Query a Google Sheet
    • Datasets
    • Bot Webhooks
  • Messaging Channels
    • Introduction to Channels
    • Web Chat
    • Facebook Messenger
    • WhatsApp
      • Send WhatsApp Notifications
      • Send Session Message
    • Line
  • App Integration
    • Android App Integration
Powered by GitBook
On this page

Was this helpful?

  1. Platform
  2. Embedded Functions

Send Quick Reply

Our platform allows you to send quick reply from the embedded functions. A Quick Reply allows you to send a text message with suggestion buttons. Each button can take you to different story point

ctx.sendQuickReply("This is a test", 
     [{
       "title" : "<Button Title 1>",
       "jumpTo": "<NODE LABEL>"
      }, {
       "title" : "<Button Title 2>",
       "jumpTo": "<NODE LABEL2>"
      }]
)

It is also possible to set variables on click of a buttons. Please refer to the code below

ctx.sendQuickReply("This is a test", 
     [{
		"title": "<Button Title 1>",
		"jumpTo": "<NODE LABEL>",
		"variables": [{
			"key": "#service_id",
			"variableType": "Text",
			"value": "value1"
		}]
	}, {
		"title": "<Button Title 2>",
		"jumpTo": "<NODE LABEL2>",
		"variables": [{
			"key": "#service_id",
			"variableType": "Text",
			"value": "value2"
		}]
	}
     }]
)

PreviousSend Text MessageNextSet Variables

Last updated 3 years ago

Was this helpful?

Set Variables