---
title: 'What is AI prompt engineering, and how does it work with accounts payable automation?'
url: https://www.medius.com/blog/what-is-ai-prompt-engineering-and-how-does-it-work-with-accounts-payable-automation/
updated: 2025-03-07T06:48:57Z
---
[Back to Blog](https://www.medius.com/blog/)

                                Accounts Payable

2.14.2024

# What is AI prompt engineering, and how does it work with accounts payable automation?

Let’s talk about [artificial intelligence (AI) for accounts payable](https://www.medius.com/ai-innovation/ "Innovation and AI"). More specifically, let’s talk about the convergence of generative AI, prompt engineering and accounts payable. You’ve likely caught on to AI trends reshaping how tasks get done and how they're growing at lightning speed. But have you heard about AI prompt engineering, and how does it work with accounts payable automation?

In this blog, we'll dive into:

What is generative AI?

What is prompt engineering?

How does prompt engineering work?

Prompt engineering in accounts payable

An AP prompt engineering example for invoice approvers

What can go wrong, and what do AP users need to know?

## What is generative AI?

Generative AI refers to systems that generate new content, such as images, text or scenarios. For example, you can use it to create realistic images, write creative pieces of text, or even create new designs. Explore more on this topic and common AI accounts payable buzzwords [here](https://www.medius.com/blog/breaking-down-ai-buzzwords-in-accounts-payable/ "Breaking down AI buzzwords in accounts payable").

* * *

## What is prompt engineering?

Prompt engineering is writing queries for AI tools that produce effective results, and the queries continuously train the AI tool to get smarter. It’s like having a personal assistant that anticipates your needs and provides tailored suggestions based on your behavior and actions. Powerful machine learning algorithms analyze real-time patterns, delivering relevant and timely prompts to enhance your user experience.

## How does prompt engineering work?

Prompt engineering gathers user behavior and preferences data, which AI algorithms analyze to create personalized prompts. These prompts can be in the form of suggested actions or recommended content. The system keeps learning from your interactions, refining its recommendations over time, which is why user inputs are crucial in guiding generative AI tools to produce what you want them to. When using these [AI models](https://www.medius.com/blog/how-ai-is-transforming-the-world-of-finance-with-ap-automation/ "How AI is transforming the world of finance with AP Automation"), you shape what comes out as generated content with the instructions you put in. The clarity and precision of what you tell it will directly impact the AI's ability to provide accurate and relevant results. So, giving clear and precise inputs is important to avoid unintended, unwanted or irrelevant results.

* * *

## Prompt engineering in accounts payable

AI helps streamline and automate much of the [AP process](https://www.medius.com/glossary/what-is-accounts-payable/ "What is Accounts Payable?") in accounts payable. For example, it can analyze past transactions and vendor relationships and give you recommendations for future payments. But how does it actually work?

Imagine you have a vendor from whom you regularly buy office supplies. With the right instructions (or prompts) to your system, your accounts payable system can recognize this pattern and suggest automatic [invoice](https://www.medius.com/solutions/medius-accounts-payable-automation/einvoicing/ "eInvoicing") payment, so you don't have to do it manually. This not only saves time but also reduces the chances of making mistakes.

Prompt engineering in [AP automation](https://www.medius.com/solutions/medius-accounts-payable-automation/ "Medius Accounts Payable Automation") goes beyond just automating payments. It's about giving clear instructions to the AI for handling different financial tasks. For instance, you can tell the AI to extract specific information from invoices, match it with purchase orders and update your records accordingly. However, successful prompt engineering requires understanding what AI can do and giving instructions that fit your AP automation needs.

* * *

## An AP prompt engineering example for invoice approvers

The [Medius Agent AMA](https://www.medius.com/news/cid-3AB815A226C69FAB/medius-to-release-first-ai-workmate-for-the-accounts-payable-industry/) (Ask Me Anything) brings generative AI to accounts payable, specifically for invoice approvers and suppliers. It helps approvers by giving them useful information about invoices, like the approval path, potential discounts and links to the vendor's five most recent invoices. Suppliers can also get up-to-date information about invoice status and better understand when they can expect to be paid without requiring an AP staff member to take time out of their day. With prompts for common invoice questions, you can get smart and contextual support for quick, confident and accurate approvals.

**Common questions include:**

- Why have I received this invoice?
- Who else is approving the invoice?
- What have I done with similar invoices previously?
- Tell me more about this supplier.
- How can I send an invoice to somebody else?
- How can I return the invoice to AP?
- When is the invoice expected to be paid?
- Early cash discount opportunities?

And if the prompts don't cover what you need, you can ask any question in your own words, and the Agent will give precise and informed responses.

* * *

## What can go wrong, and what do AP users need to know?

![woman in dark office looking frustrated](https://www.medius.com/media/kahebc55/frustrated_woman_office.jpg?rmode=max&amp;width=372&amp;height=0&amp;v=1d992612c7fdb40)

While [AI-driven AP automation](https://www.medius.com/ai-innovation/ "Innovation and AI")is exciting, there are some challenges and pitfalls to keep in mind. Inaccuracies can occur if prompts are misleading or unclear, leading to errors in financial processes. So, users need to be mindful of their language and instructions to ensure accurate interpretation by AI.

Also, it’s important to remember there is a presence of biases in AI models' training data, which can result in unfair outputs. AP users should be aware of this and actively work towards reducing biases for an ethical and unbiased approach to AP automation. Regular monitoring and validation of AI-generated results can help identify and fix any discrepancies.

## Keep learning, and AI will, too.

As AI advances and prompt engineering and AP automation integrate more, users will play a vital role in unleashing the true potential of these technologies. The more you learn as a user and prompt giver, the more AI will learn and improve. In fact, it’s a skill that will likely become a part of your job and maybe even your expertise over time. [Prompt engineer roles](https://www.forbes.com/sites/forbestechcouncil/2023/11/22/what-you-need-to-know-about-prompt-engineers-and-why-you-might-want-one/?sh=7faf4fc95342) are on the rise, according to a McKinsey survey from August 2023, which shows seven percent of respondents who work at organizations that have adopted AI are hiring prompt engineers. How much will it affect the world of finance and AP? Stay tuned to find out.

More articles we think you'll like.

10 AI Advancements in Expense Management

[Read more](https://www.medius.com/blog/10-ai-advancements-in-expense-management/)

How to prepare for the evolution of AI-powered invoice processing

[Read more](https://www.medius.com/blog/how-to-prepare-for-the-evolution-of-ai-powered-invoice-processing/)

How AI is strengthening AP’s most important functions

[Read more](https://www.medius.com/blog/how-ai-is-strengthening-aps-most-important-functions/)

#### The Financial Professional Census

Explore hurdles facing finance professionals today and learn how to overcome them in our research-backed Financial Professional Census report.

[Get the report](https://www.medius.com/resources/guides-reports/financial-professional-census-report-2024/ "Financial Professional Census Report 2024")

#### Ardent Partners' State of AP in 2026

AI is changing what AP teams can do, and fast. Get leading analysts at Ardent Partners' take on where the industry is headed.

[Get the report](https://www.medius.com/resources/guides-reports/ardent-partners-state-of-ap/ "Ardent Partners State of AP")

#### Webinar: Preparing for agentic AI in AP

In this webinar with SSON, see how leading finance teams are moving from automation to autonomous AP, with real governance built in.

[Watch the webinar](https://www.medius.com/resources/events-and-webinars/through-trust-and-governance-sson/ "Through trust and governance SSON")

#### Discover accounts payable benchmarks

Learn the efficiency metrics that matter for AP teams and the benchmarks derived from thousands of Medius customers around the globe.

[Get the report](https://www.medius.com/resources/guides-reports/ap-benchmark-report/ "AP Benchmark Report")

#### Questions about AP automation?

Let's talk through it. A 30-minute conversation with a Medius expert costs you nothing and might save you a lot.

Book a consult

## Related Posts

[8.18.2026
AP Automation
Best AP automation software for food and beverage](https://www.medius.com/blog/best-ap-automation-software-for-food-and-beverage/)

[8.17.2026
Accounts Payable
5 AI-powered tactics for touchless accounts payable](https://www.medius.com/blog/five-tactics-for-peace-of-mind-touchless-accounts-payable/)

[!\[focused business woman looking at computer\](https://www.medius.com/media/exkdu0tm/adobestock_126291778-red.jpg?width=340&amp;height=245&amp;v=1d99261d24b3f10)
8.13.2026
AP Automation
The AP metrics CFOs review first when evaluating finance operations](https://www.medius.com/blog/the-ap-metrics-cfos-review-first-when-evaluating-finance-operations/)

[8.12.2026
Integration
Choosing the best AP automation platform for complex ERP environments](https://www.medius.com/blog/choosing-the-best-ap-automation-platform-for-complex-erp-environments/)

[8.11.2026
Fraud & Risk
The best AP automation platforms for strengthening payment controls](https://www.medius.com/blog/the-best-ap-automation-platforms-for-strengthening-payment-controls/)

[8.10.2026
Accounts Payable
Top finance and accounting conferences and events in 2026](https://www.medius.com/blog/top-finance-and-accounting-conferences-events/)

Previous

Next

[View All Posts](https://www.medius.com/blog/)

## Ready to transform your AP?

[Book a Demo](https://www.medius.com/book-a-demo/ "Book a Demo") [Contact Us](https://www.medius.com/contact-us/ "Contact Us")
