To have more control over the text formatting of your messages, you can create a custom
messageobject and set the properties necessary before sending it to the user.
But how can we send a payload i.e extra information through the custom message?
The extra information can be useful at client side when using the Direct line API while developing a custom bot client application.
Below code show us how. Using the entities object it is possible:
We checked the response in the direct line APIalso:
Here is the full documentation on how to create custom messages in Bot framework:Create Messages
Hope it helps!