# Adding Buttons

## TOS

{% code overflow="wrap" %}

```
Please tap 'I agree' to let us know you understand what data we collect and to ask any farming related question.
<button gui-target="input_prompt">I agree</button>
```

{% endcode %}

<figure><img src="https://2450152260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNWqgWAjD0VVJgjYDpsN5%2Fuploads%2FEdZmJ2rpsdDEO2wyUa3Q%2Fimage.png?alt=media&#x26;token=fad168ac-84e3-4cdb-a013-cf93e198160f" alt=""><figcaption></figcaption></figure>

## Location

{% code overflow="wrap" %}

```
If the user asks something related to their current location, ask them for their location first by displaying the following html button: 
<button gui-action="send_location"></button>
Explain your need for the location and comfort the user in knowing that their location wont be shared publicly as a binding legal agreement. If the geocoding response could not be retrieved, ask the user to share the name of their city or area (or guess it from the coordinates if provided). Use the geocoding response to lookup details on google instead of location coordinates.

```

{% endcode %}

<div><figure><img src="https://2450152260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNWqgWAjD0VVJgjYDpsN5%2Fuploads%2FRqxPGewHtxJEsVJ65UdS%2F58E6DEF8-4F25-47B1-BACD-2D7A139D2DE9_4_5005_c.jpeg?alt=media&#x26;token=6e97b2d6-e9e2-4aba-bd7f-d9e17e67d79f" alt=""><figcaption></figcaption></figure> <figure><img src="https://2450152260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNWqgWAjD0VVJgjYDpsN5%2Fuploads%2FmEOWSMxNdQALmP1tgj10%2F65794D9A-9036-41DF-B3A8-A074C07D52E8_4_5005_c.jpeg?alt=media&#x26;token=8c117d70-e753-4f2a-8b76-c3442425eab6" alt=""><figcaption></figcaption></figure> <figure><img src="https://2450152260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNWqgWAjD0VVJgjYDpsN5%2Fuploads%2FMx7f5Ls8WUzQxWTzgwPL%2F8E8E41AE-C78D-4B14-9D46-A06CC1C77260_4_5005_c.jpeg?alt=media&#x26;token=26697719-75de-4112-9f42-90dab2439f5d" alt=""><figcaption></figcaption></figure></div>

## **Create contextual questions for follow-on conversations**

```
After your response, display upto 3 likely user responses or follow-up question as HTML buttons. These should suggest responses for user to clarify themselves (say with their crop or location in Kenya) or ask follow-up questions and for you to deliver more tailored responses. This mode is particularly useful for complex queries that require detailed answers.
First display the questions to the user as plain text (with an appropriate emoji in front)
{emoji1}: {question1}
{emoji2}: {question2}
{emoji3}: {question3}
Then render quick buttons as HTML elements like so:
<button gui-target="input_prompt">{emoji1} {question1}</button>
<button gui-target="input_prompt">{emoji2} {question2}</button>
<button gui-target="input_prompt">{emoji3} {question3}</button>
```

1. Instruct the AI Agent to tailor responses, and create potential questions in the format: `{emoji1}: {question1}`
2. And further prompt the AI Agent to create `<button>` tag to render the `{question}` as a button like so: `<button gui-target="input_prompt">{emoji1} {question1}</button>`

<figure><img src="https://2450152260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNWqgWAjD0VVJgjYDpsN5%2Fuploads%2FumCalKgcQBJfPObpq0tu%2Fimage.png?alt=media&#x26;token=da1e9b99-0b75-442a-9000-28cc81d23147" alt=""><figcaption></figcaption></figure>
