---
id: change/bcapps/14491
type: change
title: "#14491 Emit the E-Document LLM calls under the Payables Agent copilot capability"
summary: E-Document LLM calls that exist for the Payables Agent are now routed through the Payables Agent app and emitted under its copilot capability, at the dataplane's request to simplify billed feature management.
tier: official
language: en
tags:
  - refactor
  - main
  - bc30
  - codeunit e-doc. ai tool processor
  - codeunit e-document mllm handler
  - codeunit pa draft based copilot caller
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-11-26T01:03:54.974Z"
  flags: []
generated:
  at: "2026-12-01T00:17:57.990Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: ba8009ec45876fd6f91be324dbda5622bd16bcf2
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14491
    title: "microsoft/BCApps#14491: Emit the E-Document LLM calls under the Payables Agent copilot capability"
    date: "2026-11-25"
    commit: ba8009ec45876fd6f91be324dbda5622bd16bcf2
    t: null
    quote: Routing the calls done for the Payables Agent functionality that are done today in the E-Documents app via the Payables Agent app.
links:
  learn: []
  objects:
    - object/codeunit/6195
    - object/codeunit/6231
    - object/codeunit/3329
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/payables-agent
      title: Payables Agent Overview in Business Central
      label: possibly related
      why: Documents Payables Agent processing of vendor documents with AI and copilot capability.
      by: model
number: 14491
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14491
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-25T10:10:28Z"
author: mynjj
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Ownership: Needs Review"
  - "Team: Other"
change_class: code
change_kind: refactor
behavior_change: true
breaking: false
files:
  count: 6
  additions: 64
  deletions: 16
  al: 3
apps:
  - EDocument
  - PayablesAgent
objects_touched:
  - key: codeunit/6195
    page: codeunit/6195
    type: codeunit
    id: 6195
    name: E-Doc. AI Tool Processor
    app: EDocument
    status: modified
  - key: codeunit/6231
    page: codeunit/6231
    type: codeunit
    id: 6231
    name: E-Document MLLM Handler
    app: EDocument
    status: modified
  - key: codeunit/3329
    page: codeunit/3329
    type: codeunit
    id: 3329
    name: PA Draft Based Copilot Caller
    app: PayablesAgent
    status: added
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 658775
systems:
  - integration
  - copilot
quote: Routing the calls done for the Payables Agent functionality that are done today in the E-Documents app via the Payables Agent app.
joined_against:
  major: "30"
  commit: 4d60d10920084a35a6231e5a0ffbd0577b0c399e
---

# #14491 Emit the E-Document LLM calls under the Payables Agent copilot capability

> E-Document LLM calls that exist for the Payables Agent are now routed through the Payables Agent app and emitted under its copilot capability, at the dataplane's request to simplify billed feature management.

[Pull request](https://github.com/microsoft/BCApps/pull/14491) · merged into `main` (BC30) on 2026-11-25 by mynjj · 6 files (+64 -16), 3 AL · refactor · tier official · reviewed (checked by Opus)

## What changed

- E-Document LLM calls used only for Payables Agent scenarios now run under the Payables Agent copilot capability
- New Payables Agent codeunit PADraftBasedCopilotCaller makes these calls
- E-Doc. AI Tool Processor and E-Document MLLM Handler updated for the routing
- Requested by dataplane to simplify management of billed features
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6195 "E-Doc. AI Tool Processor"](../../objects/codeunit/6195.md), EDocument: modified
- [Codeunit 6231 "E-Document MLLM Handler"](../../objects/codeunit/6231.md), EDocument: modified
- [Codeunit 3329 "PA Draft Based Copilot Caller"](../../objects/codeunit/3329.md), PayablesAgent: added

## Context

- Work items: AB#658775
- Labels: AL: Apps (W1), Ownership: Needs Review, Team: Other
- Systems: integration, copilot
- From the description: "Routing the calls done for the Payables Agent functionality that are done today in the E-Documents app via the Payables Agent app."

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Payables Agent Overview in Business Central](https://learn.microsoft.com/dynamics365/business-central/payables-agent) — possibly related: Documents Payables Agent processing of vendor documents with AI and copilot capability. (model-linked)

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
