REFERENCE
Developer Reference
Authentication, APIs, SDKs, Flow Agent processors and parameter resolution, in full.
Hint
Hint is the message template for a hint message.
Basic usage
Hint renders centred and understated in the chat interface. It is typically used for a change of system state, a confirmation, or a supporting note.
warningLimitation: Hint does not support quickReplies. Setting them has no effect.
Examples
To send a hint from Push Message:
- Choose
Expressionin the Template field's dropdown. - Enter the following JavaScript in the editor.
A change of system state
(() => {
return {
type: 'HINT',
text: 'Switched to the Taipei Xinyi store',
};
})()Confirming an action
(() => {
return {
type: 'HINT',
text: 'Your order has been created',
};
})()A change of session state
(() => {
return {
type: 'HINT',
text: 'Connected to a human agent',
};
})()Introducing a capability
(() => {
return {
type: 'HINT',
text: 'You can send an image and I will analyse it for you',
};
})()- Choose