How to Automate Supply Chain Risk Reports: A Guide for Developers
Do you use Python? If so, this guide will help you automate supply chain risk reports using AI Chat GPT and our News API.
A news agent sees a report stating there was a drop in shipments and opens the company’s presentation to read the chart. The answer may still be wrong if the chart only pertains to a specific part of the business. Finding the right page is only half of the challenge for multimodal RAG. The agent needs to determine what the figure represents as well.
On November 23rd, 2026, Google launched native file-slicing controls in the Gemini API. Developers can select particular pages and content layers of a document and reuse an uploaded file across turns. This allows news agents to inspect a focused part of the document after news discovery. However, whether the selected slice actually contains the evidence to support the claim is not determined.
In a constructed example, a news article states shipments from Alder Manufacturing declined 20% last quarter. It links to a presentation with a chart on PDF page 12. A footnote marker points to a definition on PDF page 13, which defines the comparison as being against the previous quarter’s shipments from the legacy European plants and excludes shipments from the newly acquired operations.
Users may ask “Did shipments fall across Alder’s entire business?”
A news agent attaching the presentation and stating the answer is yes would make an unsupported company-wide claim.
The useful correction is more focused: Alder reported a 20% drop at its legacy European plants compared to the previous quarter, except for newly acquired businesses. These pages do not establish the shipment change across the entire company. The next retrieval should request data on consolidated shipments, if the user requires this information.
Webz.io’s News Search API accepts queries in natural language and provides article information and related text. Users may apply date and source restrictions to help with their search. With respect to Alder, a query on the recent decline in Alder’s quarterly shipments would supply the article in this example.
Use this information to identify the named presentation and confirm the date and issuer. Your application retrieves the presentation separately through its approved document-access path. Keep the two pieces of evidence related.
Don’t assume you know the date of the presentation based on the title and don’t use an older presentation to support your claim. Save the URL of the document you retrieved along with the date and time. A file digest may aid your application in differentiating two files with the same URL.
Google’s document-processing documentation distinguishes extracted page text from rendered page images. Use extracted text to help locate the section of interest, and inspect the image when the chart’s layout matters. For Alder, locate the text on shipments and inspect PDF page 12 to view the related chart and footnotes on page 13.
Page ranges in documented controls use one-based, inclusive page numbering. Therefore selecting start_page 12 and end_page 13 in a control would capture those two PDF pages. Note, the page numbers printed on slides may not align with the file’s actual page order. Resolve this mapping before creating the citation or requesting the document.
Choose the appropriate level of detail for the question. Sometimes a simple text skim is sufficient to locate where a chart appears on a page. In other cases the page may need to be rendered at a higher resolution in order to read the chart. Higher resolution cannot recover a qualification on a page the application never requested.
Focused retrieval can help answer the question if it is reasonable to expand the scope to include related information. However, if the note is not legible, leave the company-wide claim unanswered and request additional review.
For the example given, include the definition and the chart in the same document citation. Preserve the position of the PDF pages being referenced and provide a usable page reference to the user. News articles may include information relevant to what was reported, and the presentation may include information relevant to what was being assessed.
Retain the selected page range and content layer with the document. A reviewer should be able to reconstruct the agent’s use of the “legacy-plant” figure without mistaking the evidence for the entire report. Webz.io’s real time news guide provides further information on the retrieval pipeline; the evidence requested here should be at the point where the answer justifies its case beyond the article in question.
Create a simple presentation with the fictional chart on page 12 and its definition on page 13. Provide the fictitious article as evidence. Check the final answer to the company wide shipment question and inspect it with the pages supplied to the model. The answer should also state that the consolidated change remains unestablished. Then withhold page 13. The agent should request the definition or return a restricted answer.
When both pages are available, the answer should retain the legacy-European-plant restriction and explicitly exclude newly acquired operations.
Move the definition on page 13 to a different page while preserving the marker. A workflow that always fetches pages 12 and 13 can pass the first check and fail this check. The check is whether the agent follows the evidence needed to interpret the chart, rather than memorizing a two-page recipe.
Do you use Python? If so, this guide will help you automate supply chain risk reports using AI Chat GPT and our News API.
Use this guide to learn how to easily automate supply chain risk reports with Chat GPT and news data.
A quick guide for developers to automate mergers and acquisitions reports with Python and AI. Learn to fetch data, analyze content, and generate reports automatically.