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"
		}]
	}
     }]
)

Last updated