Обновление в нашей коммерческой службе Bot Libre for Business всего за 99¢ в месяц
FAQ

How to embed HTML or JavaScript in a response?

по admin опубликовано Mar 21 2014, 13:49

Your bots responses can include HTML or JavaScript.

From the Training page under Admin, or from the Chat Logs page, you can enter responses that include HTML or JavaScript. The HTML code will be rendered as is in the web client.

For example you could include a link.

User: Can you tell me more about BOT libre?
Bot: Refer to the <a href="http://www.botlibre.com/about.jsp">about</a> page for more info.

You could also include JavaScript. In general be careful with embedding HTML or JavaScript.

User: What is the date?
Bot: That <b>date</b> is <script>document.write(new Date());</script>.

This only applies to the web client, if you access the bot from Android, the HTML tags will be stripped.


Идентификатор: 16003
Теги: html, javascript
Опубликовано: Mar 21 2014, 13:49
Обновлено: Mar 21 2014, 13:53
Ответы: 0
Вид: 1355, сегодня: 1, неделю: 1, месяц: 5
Я уверен, что
Вывесить флаг как оскорбительное, или в нарушение правил сайта