Message formatting: HTML and math formulas
HTML code in messages
How to use HTML in your Agent
Example: display images from a website
When the user asks to see a photo:
1. Call the "photo_album" function;
2. Read the photo names returned by the function;
3. Find the photo the user asked to see and remember the path
and filename (/img/example.png)
4. Respond by including the HTML code that lets the user see the photo
HTML code to show the photo to the user:
<img style="max-width: 100%; height: auto;" src="XXX">
REMEMBER TO REPLACE XXX with the absolute path of the image!
So not ".../img/example.png" but "www.[example].org/img/example.png"Math formulas
Benefits of advanced formatting
Copying formatted messages
Last updated