Relay.app Docs
  • Getting Started
    • Introduction
    • Helpful Resources
    • FAQ
  • Triggers
    • Triggers 101
    • Webhook Trigger
    • Mailhook Trigger
    • Manual Trigger
    • Scheduled Trigger
    • Batch Triggers
    • RSS Trigger
  • Actions in Apps
    • Actions 101
  • DATA
    • Step Outputs
    • Find Steps
    • Lists (Arrays)
    • Inspecting Run Data
  • AI
    • AI Steps
    • Human-in-the-Loop AI reviews
    • AI Credits
    • Agentic Tool Use
    • Knowledge
    • Prompt Templates
    • Prompt Tips
    • Audio Transcription
  • Built-in actions
    • Transform data
    • Search Google
    • Scrape Text from Website
    • Custom HTTP Requests
    • Run Custom Code (JS)
  • Flow Control
    • Paths
    • Iterators
    • Wait steps
    • Sequences
  • Human-in-the-Loop
    • Human-in-the-Loop Steps
    • AI output reviews
    • Roles
  • Workflows
    • Folders and Organization
    • Sharing Workflows
    • Headings
    • Notes
  • TEMPLATES
    • About Workflow Templates
    • Using a Template (Importing)
    • Creating a Template (Exporting)
  • Workspace
    • Step & AI credit usage
    • Billing and Plans
    • Workspace administration
    • (Sharing) App Accounts
  • App-Specific FAQs
    • Airtable
    • Attio
    • Cal.com
    • Coda
    • DeepSeek
    • Discord
    • Fireflies
    • Gmail
    • Google Docs
    • Google Drive
    • Google Sheets
    • Microsoft Permissions
    • Microsoft Outlook Mail
    • Notion
    • OpenAI
    • OpenPhone
    • Slack
    • X (Twitter)
    • QuickBooks Online
Powered by GitBook
On this page
  • 1. Extract invoice details from an email
  • 2. Classify & summarize incoming customer support emails
  • 3. Extract action items & summarize meeting notes
  • 4. Extract event details from a website with upcoming webinars

Was this helpful?

  1. AI

Prompt Templates

Last updated 6 months ago

Was this helpful?

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 date

Additional context

2. Classify & summarize incoming customer support emails

You're a customer support agent for a SaaS product. You just received an email from .

Please summarize their message in one sentence, and classify the email either as a 'Feature request', 'Bug report' or 'Other' when neither of the first two are a good fit.

Output & Context

3. Extract action items & summarize meeting notes

You're an executive assistant and are tasked to process meeting notes that arrive in [John's] mailbox. You just received an email with meeting notes.

Read the meeting notes in the email. Create a list of all the action items assigned to [John], and summarize the meeting notes.

Output & Context

4. Extract event details from a website with upcoming webinars

Below you will find a website that lists upcoming webinars for [Product].

Extract a list of all upcoming webinar events from this website. For each of them, extract:

* The name of the webinar
* The name of the presenter
* The date
* The start time
* A link to sign up

Website contents below this line
------

Output

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

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 action. Afterwards, you will be able to insert this as a variable in the prompt ([$ Scraped Content] in the example above).

Scrape Text from Website
Extract invoice details from an email
Classify & summarize incoming customer support emails
Extract action items & summarize meeting notes
Extract event details from a website with upcoming webinars
The Output is generated via the Auto-generate from prompt button
The Choices as defined for the emailClassification single select output
The Output is generated via the Auto-generate from prompt button
The actionItemsAssignedToJohn list is defined as a List of text variables
The Output section as generated via Auto-generate from prompt.
Specifying a "list of objects" as a desired output in AI steps