AI Use Cases
Prompts
UC1 - Reductive Prompt: Create a summary from an email attachment
Use Case: Given is an email with attachment as input. Create a summary from this email loaded from an IMAP inbox.
pipeline:
- imap.get:
host: outlook.office365.com
secret: my-office365-secret
- ai.prompt.send: "Create a short summary of the attachment in the given email."
Result:
The attachment is an invoice from ABC Software (Germany) GmbH to Musterkunde AG,
detailing various services provided and their associated costs for the period from
01.02.2024 to 29.02.2024. The invoice includes information on user accounts,
transaction fees, VAT, and payment instructions.
UC2 - Classifying Prompt: Classify the type of an email attachment
Use Case: Given is an email with attachment as input. Classify the attachment of this email based on a given set of classes.
pipeline:
- imap.get:
host: outlook.office365.com
secret: my-office365-secret
- ai.prompt.send: |
Given are these categories: invoice, quote, termination.
In which of these fits the given attachment?
Return only the name from the list.
Result:
UC3 - Classifying Prompt: Classify the the mood of the sender of an email
Use Case: Given is an email as input. Based on a list of moods, classify the mood of the email’s sender.
Result:
UC4 - Transformative Prompt: Extract information from an PDF as JSON
Use Case: Given is an invoice as attachment PDF to an email. The goal is to extract all required information from this PDF and provide it in a valid JSON format.
Result:
Intents
UC5 - Detect the intent and its parameters from an user email
Use Case: Given is an email with an attachment. Based on a given set of intents, the AI should detect the one which matches and additionally extract all required information from it.
Result:
UC6 - Detect and start a command / workflow based on a user email
Use Case: Given is an email with attachments. The AI must detect the intent of this email and finally a command linked to this intent must be executed and all required parameters must be extracted from the input email and transformed and passed along to the command. Also the attachment file must be passed along.
Result:
For an invoice given in attachments of the email, this will select a the startInvoiceWorkflow
intent with final workflow parameters as as listed below:
This JSON will then cause the command ai.intent.detect
to auto-execute the command workflow.start and pass along all parameters marked "pass": true
.
Â