Add buttons to your AI agent
To improve retention for your Agent, we recommend you include buttons. These will encourage users to engage with the Agent and can influence retention and higher likelihood of improving the Theory of Change process.
Scenarios
TOS Agreement
Allow users to Agree to your Terms of Service before starting the user's conversation. The response can be securely stored in your DB.

Create contextual questions for follow-on conversations
To create and retain users, it is useful for contextual questions to be rendered as Call-to-Action buttons.

How to add buttons to agent?
To add Buttons to Gooey.AI’s agent is extremely simple. They can be added easily in the Instructions prompt of the Agent Builder.
Example 1: TOS Agreement
For a constant message like when you want users to Agree to TOS, you can add the prompt as shown below:
The key part to remember is to add the <button> tag in the prompt, so any text within the <button> tag will render as buttons in the WhatsApp Agent.

Example 2: Create contextual questions for follow-on conversations
Agent can respond and create contextual buttons for the user as per the chat history. This can be achieved through prompt engineering the Agent.
Here are the steps include:
Instruct the Agent to tailor responses, and create potential questions in the format:
{emoji1}: {question1}And further prompt the Agent to create
<button>tag to render the{question}as a button like so:<button gui-target="input_prompt">{emoji1} {question1}</button>

Last updated
Was this helpful?
