Prompt Templates
Here are a few example prompts to give you an idea of what a good prompt can look like in Relay.app.
1. Extract invoice details from an email
The email we just received contains an invoice. Extract the following information from the invoice:
* Name of the vendor
* Amount
* Due dateAdditional context

2. Classify & summarize incoming customer support emails
Output & Context


3. Extract action items & summarize meeting notes
Output & Context


4. Extract event details from a website with upcoming webinars
Output

Note 1: The AI model doesn't have access to the Internet directly. You'll first need to scrape content from a website via the built-in Scrape Text from Website action. Afterwards, you will be able to insert this as a variable in the prompt ([$ Scraped Content] in the example above).
Note 2: if you were to construct this output yourself without the 'Auto-generate' button, you will have to do the following:
Add one top-level output
Variant: List
Type: JSON Array
Nested type: JSON Object
For the definition of the JSON Object inside the list, you will then add individual fields of (of the Single variant) for each piece of information that you want to extract, e.g. the date of the webinar

Last updated
Was this helpful?