Skip to main content

Why does an AI Agent fail in production?

  • Dec 4, 2026 8:24 PM UTC
  • 0 replies
  • 2 views
vinicius.pereira
Community Manager

👤 For pipe admins and anyone testing AI Agents
🔐 Available on all plans with access to AI Agents
🎯 For anyone investigating attachments, card moves, and credits for an AI Agent run

 

A finance team tests a reimbursement review and the agent finds the amount on the invoice. During regular operations, a similar request gets stuck in the Pending phase. The team needs to find out whether the agent read the documents, whether the current phase allows the move, and how far the run got.

By the end of this article, you’ll know what to verify with a reference card, when to split document processing, and which log details explain a failed run or its credit usage.

 

What you will learn:

 

What the simulation verifies

Test uses a reference card to simulate the behavior. You can check what the agent extracted and which action it proposed. The simulation leaves the card unchanged. When Intelligent Document Processing (IDP) is enabled for that behavior, the test uses it too.

For a reimbursement review, choose a card with a sample invoice and a known amount. Compare the extracted amount and proposed destination with what your team expects. Change one condition at a time to understand what affects the result. See How to test an AI Agent before it goes live for help choosing scenarios.

 

A suggested move confirms the decision for that scenario. To verify that the card can advance, run the behavior in a controlled pilot and check the actual destination in the Logs.

 

To practice setting up behaviors before your pilot, explore the AI Agents module in the Artificial Intelligence Specialist Certification.

 

How to count pages and images per run

In standard processing, each behavior run can handle up to 30 units across PDF pages and PNG or JPG images. Each page and each image counts as one unit. The limit is set by Pipefy and also applies when you bring your own model through BYOM. If the total exceeds 30, the run can return a MaxImagesLimit error.

A reimbursement request with a PDF with 12 pages, two photos, and another PDF with 17 pages adds up to 31 units. If the documents can be reviewed separately, one behavior can read the first PDF and the photos, for a total of 14 units. A second behavior can read the PDF with 17 pages. Each run has its own limit and, if both reach the model, its own credit usage.

 

If you need to review a long PDF as a whole, consider Max Effort (beta) in the Help Center. It can analyze PDFs longer than 30 pages and uses the native Pipefy AI Pro model even when a BYOM model is configured. Use PDFs with searchable text. The beta does not yet provide native optical character recognition (OCR) for scanned documents.

 

What allows a card to move

The Move card action depends on which destinations are allowed from the card’s current phase when the behavior runs. Required fields and permissions can also prevent an action from completing.

Suppose a request can move from Review to Approval. If it’s in Pending, your process may require it to return to Review first. Check which phase should trigger the behavior or which destination it should propose from each starting point. Keep the review stage when your process requires it. For more help, see Why a card did not move as expected.

 

How to identify a failure and check credit usage

In the agent’s Logs, find the run by card, behavior, and time. Summary shows the run’s total AI credits. In Tracing, each node represents a step in the behavior. Check which step failed and how many credits each node used. If a node displays No credits consumed, that message applies to that node.

The base cost for a standard run depends on the model. Lite uses 1 credit, Standard 2, Pro 3, and BYOM 1. With BYOM, you also pay your model provider for tokens. Features such as IDP, Web Search, and Calculations and Analysis can add credits to the base cost when used. See the AI credit consumption guide for rates and How to plan and manage AI Credits in Pipefy for budgeting.

If a run is blocked before it calls the model, for example because the account has already reached its credit limit, it uses no credits. If the model processes the request and the card move fails afterward, the model may already have used credits. Follow the sequence of nodes to see what happened in that run.

 

Before moving on, confirm that you understand:

☐ I can explain what the simulation verifies and what I need to check in an actual run.

☐ I can count the pages and images in a run and decide when to split the work.

☐ I can check the current phase’s allowed destinations and find the failed step and credit usage in the logs.

 

Ready to review a run in your process? → How to investigate an AI Agent execution