---
title: Prompts
url: https://www.tines.com/docs/formulas/prompts/
updated: 2024-10-24T23:48:22+00:00
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/llms.txt) › [Formulas](https://www.tines.com/llm/docs/formulas.md)*

# Prompts

*[View on tines.com](https://www.tines.com/docs/formulas/prompts/)*

Prompts can be used to create a feedback loop from Tines to the end-user. The formula function `PROMPT` can be included in any action, and when the URL created by the prompt is visited by a user,  the action that implements the prompt will emit a new event. 

Documentation on the usage of the `PROMPT` function can be found [here](https://www.tines.com/docs/formulas/functions/prompt).

## Example Configuration

Email a prompt URL to an address using the Email action:

```json
{
  "recipients": [
    "alice@example.com"
  ],
  "sender_name": "Alice",
  "subject": "Visit this link",
  "body": "<<PROMPT(\"OK\")>>",
  "advanced_html": true
}
```

When the action is run, the inbox listed in the recipients field, will receive an email with the below contents:

![](https://www.datocms-assets.com/55802/1718378638-screenshot-2024-06-14-at-16-23-48.png)

When the link in the email is clicked, an event will be emitted by the email action specified above, with the payload:

```json
{
  "send_email_action": {
    "prompt": {
      "agent_id": <action-id>,
      "event_id": null,
      "status": "OK"
    }
  }
}
```

The text passed into the `PROMPT` function will determine the value of the status key in the emitted event of the action.
