> For the complete documentation index, see [llms.txt](https://docs.rillet.com/EjmEP4KZ9BVp9j2ho4Mh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rillet.com/EjmEP4KZ9BVp9j2ho4Mh/aura-ai/aura-inspo/aura-agents-create-bills-from-email-inbox.md). Agents can also search and read this documentation through its [MCP server](https://docs.rillet.com/EjmEP4KZ9BVp9j2ho4Mh/~gitbook/mcp).

# Aura Agents: Create Bills from Email Inbox

This Aura Agent prompt automates AP bill entry in **Rillet**, scanning your inbox for today's vendor invoices, reading the details off the attached PDF, and drafting the bill with the vendor record already in place.

### Review the Prompt Details

Before using this prompt, review its category, requirements, and walkthrough:

| Field               | Details                                                                                  |
| ------------------- | ---------------------------------------------------------------------------------------- |
| Category            | Accounts Payable                                                                         |
| Connectors Required | Gmail                                                                                    |
| Attachments Needed  | None. The bill PDF arrives on the email.                                                 |
| Walkthrough         | [**Sync Bills from Email**](https://www.loom.com/share/19b4fd23201e49d7b96a09e8aaf88fd4) |

This prompt needs the Gmail connector enabled before it will run. No file uploads are required, since Aura reads the PDF attached to each email.

### Understand What This Prompt Does

Aura searches today's mail for subject lines containing "AP Bill," opens the attached PDF, and pulls the vendor, invoice number, dates, currency, line items, and totals straight off the document. It checks each vendor against your existing vendor list. When there is no match, it creates the vendor and assigns a best estimate default expense account based on what is being billed, then flags it so you can confirm the coding. Nothing is created until you approve. Add this agent to your daily AP routine and bill entry stays current instead of piling up for a Friday afternoon.

### Copy and Customize the Prompt

Copy this prompt into Aura, then customize it for how your AP mail actually arrives. The version below keys off the phrase "AP Bill" in the subject line and scans today only, so adjust the phrase, the date window, and any default account preferences to match your own setup.

```
Create bills in Rillet from today's AP bill emails.

1. Using the Gmail connector, find every email that contains a bill or invoice. Open the PDF attached to each one.
2. Pull these fields off the PDF, not the email body: vendor name and remittance details, invoice number, invoice date, due date or payment terms, currency, line item descriptions, quantities, unit prices, line amounts, tax, and invoice total. The PDF is the source of truth.
3. Match the vendor to an existing Rillet vendor. If there is no match, create the vendor from the details on the PDF and assign a best estimate default expense account based on what is being billed. Flag every vendor you create and every account you estimated.
4. Show me the extracted fields, the vendor match or the proposed new vendor, and the GL coding for each bill before creating anything.
5. Once I approve, create one bill per PDF, dated the invoice date, with the invoice number as the bill reference and one bill line per line item on the PDF. Attach the source PDF to the bill.

Other notes: Skip any email with a missing or unreadable attachment and tell me which ones. Do not create a bill if one already exists with the same vendor and invoice number.
```

Aura returns the extracted bill data, the vendor match status, and the proposed GL coding for review, then creates one bill per invoice and attaches the source PDF once you approve.

### See Also

To learn more about Aura Agents in **Rillet**, review these articles:

* [**Aura Agents**](https://docs.rillet.com/EjmEP4KZ9BVp9j2ho4Mh/aura-ai/aura-ai/aura-agents.md)
* [**Aura Agents: Auto-Match a Lockbox Payment List**](https://docs.rillet.com/EjmEP4KZ9BVp9j2ho4Mh/aura-ai/aura-inspo/aura-agents-auto-match-a-lockbox-payment-list.md)
* [**Connect External Apps with Aura MCP Connector**](https://docs.rillet.com/EjmEP4KZ9BVp9j2ho4Mh/aura-ai/aura-ai/connect-external-apps-with-aura-mcp-connector.md)

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.rillet.com/EjmEP4KZ9BVp9j2ho4Mh/aura-ai/aura-inspo/aura-agents-create-bills-from-email-inbox.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
