The UI Engine is a powerful feature in TIXAE Agents that allows you to create dynamic, interactive elements in your agent’s responses. By integrating the UI-Engine with your knowledge base, you can create more sophisticated and user friendly interfaces. This doc shows you how to effectively combine these two powerful tools.
#When recommending products, create a carousel using the provided product info and formatting instructions in the knowledge base with description, image links and button text.
Copy
#You can create cards using the UI engine components available. Use the instructions provided in the knowledge base when displaying these.
Copy
#You can display images. When recommending products, use the links that are provided together with the product description in the knowledgebase
Copy
#You can display iframes. You have iframe code provided to you in the knowledgebase. If the user asks to book a meeting, you will display the iframe using the code snippet. Do not manipulate the code in any way and keep the height and width.
By referring to the knowledge base in your prompt, you can populate it with links, text, and formatting instructions that the model can use in its responses, freeing up space in your system instructions.
To efficiently retrieve information for UI Engine components, structuring your knowledge base documents for easy retrieval is key. We recommend the following:
Carousels can be displayed in every way you want. only pictures, without pictures, without title etc. This makes for many creative use-cases:
Copy
# When showing products in carousel use this information:Title: Travis Scott x Air Jordan 1 Low OG 'Olive'Description: Travis Scott collab? You know it's gonna be 🔥. Dropping soon!Image: https://sneakerbardetroit.com/wp-content/uploads/2024/06/Travis-Scott-Air-Jordan-1-Low-OG-Medium-Olive-On-Feet-1068x757.jpgButton: Cop now🔥Title: Nike SB x Air Jordan 4 'Pine Green'Description: Skate-ready J's in a fresh colorway. These are straight 🔥Image: https://sneakernews.com/wp-content/uploads/2023/03/jordan-4-sb-pine-green-store-list-0.jpgButton: Cop now🔥
Cards
As well as all other UI elements. Cards can also be heavily customized. Here are some variants you can consider:
Copy
#When displaying cards, use the following information:## Card with text:Title:Text:## Cards without button:Title:Text:## Cards with button:Title:Text:Button:## Cards with image:Title:Text:Image link:## Cards with image and button:Title:Text:Button text:Image link:## Card with only image and title:Image:Title:
Images
Images needs to be pulled from a valid URL. Makes sure to test this thouroughly before launching you agent. Looking for a hosting service, we recommend imgur.
Copy
# When showing images, use these links:## Picture of a cute dog: [URL]# Macbook pro product information:# [Description]## Photo of a macbook pro: [URL](use this when recommending the product to the user)
Iframes
Iframes introduces the ability to integrate any website into you agent. This means you can embed calendly for booking, agent previews inside you agent😯 or show youtube videos with ease. Make sure to test this thoroughly.
Copy
# When the user asks to book an appointment you will display this calendly iframe code:If the user asks to book an appointment embed this link to calendly in a iframe:<iframe width="400" height="442" src="https://calendly.com/admin-magicmark/15min?primary_color=ff00d9&month=2024-08"></iframe>## Remember: Set the iframes width and height as px as not as 100% in the CSS. And use exactly the iframe code provided, do not change anything!