...
Code Block | ||
---|---|---|
| ||
pipeline:
- ai.prompt.send: prompt: |
Return the names of the 10 biggest cities in the world as JSON array. |
...
Code Block | ||
---|---|---|
| ||
pipeline: - imap.get: host: outlook.office365.com secret: my-office365-secret - ai.prompt.send: prompt: | "Create a short summary of the attachment in the given email." |
Result:
Code Block |
---|
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. |
...
Code Block | ||
---|---|---|
| ||
pipeline:
- imap.get:
host: outlook.office365.com
secret: my-office365-secret
- ai.prompt.send: prompt: |
Given are these categories: invoice, quote, termination.
In which of these fits the given attachment?
Return only the name from the list. |
...
Code Block | ||
---|---|---|
| ||
pipeline: - imap.get: host: outlook.office365.com secret: my-office365-secret - ai.prompt.send: prompt: | In which mood fits the given email? Return only the one from this list which matches best: happy, neutral, disappointed, angry, cannot detect |
...
Code Block | ||
---|---|---|
| ||
pipeline:
- imap.get:
host: outlook.office365.com
secret: my-office365-secret
- ai.prompt.send:
prompt: |
Extract the invoice in the attachment to a JSON using this structure:
{
"invoiceNumber": "value",
"address": "value",
"invoiceDate": "value",
"positions": [
{
"description": "value",
"pieces": "value",
"price": value
}
]
} |
...