How to format chatbot reply text?
Hello,
I have created a chatbot application. I would like to format the text replied to the end users with html tags(Example: <h1></h1>, <ul></ul> etc) and css from my chatbot rainbow application .
When I tried to do the same with the chatbot string title, it is taken as string in Rainbow.
How can I achieve this in my chatbot application? I have seen this type of text formatting in Emily.
Regards,
Sunny
-
Offizieller Kommentar
Hi sunny,
I suggest instead of using HTML content to use the markdown format as described in https://hub.openrainbow.com/#/documentation/doc/sdk/node/guides/Answering_chat_message
at "ADDITIONAL CONTENT TYPE AND MESSAGE" chapter.
Regards
Vincent
Aktionen für Kommentare -
Hello Vincent,
Thank you for the reply.
Now I am able to consume markdown content type.
I am not to form a list by using markdown Lists:
-
,+
or `* ``.Could you please give me an example of the string format.
I have tried the below combinations. It doesn't work. Correct me if my string format is incorrect.
Example 1: "-list 1,list 2,list 3+"
Example 2: "`list 1*list 2*list 3``"
Is it possible to have different headers in a single string message?
Example: "#heading1 ##heading2 ###heading3 ####heading4"
It doesn't work for me with the above string format.
Also please give me an example each on Code and Blockquotes.
Regards,
Sunny
-
Hi Sunny,
don't forget to carriage return each time
#heading1
## heading2
* list 1
* list 2
....
take a look here: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet (we just support a subset as described in our documentation
Regards
Vincent
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare