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 an article stating a supplier has stopped production and labels that supplier as ‘active’ and ‘at risk’. The article is correct. The supplier has not been correctly classified. The vendor master still has that supplier enabled, but the purchasing snapshot shows no open orders. More news articles will not resolve a business definition the application never supplied.
On December 2, 2026 AWS announced that AWS Context was generally available. In their announcement they give an example of an ‘active customer’ whose definition depends on the organization’s business rules.
From a news application standpoint the same principle applies. Not every event mentioned in the news is relevant to a particular organization. Therefore, the organization should first define what they mean by the term in question, in this case ‘active’, before asking the news agent to search for relevant articles.
When forming the question ‘Which active suppliers have had production disruptions this week?’ the news agent will need to locate articles to support the first part of the question, ‘production disruptions’. The second part of the question, ‘active suppliers’, will need to be determined by the organization’s purchasing data.
The business user should decide on the definition of ‘active’ to be used, when that definition goes into effect and from what data source that definition should be evaluated. Until that definition is supplied the news agent should not assume ‘enabled vendor account’ or ‘supplier with an open purchase order’.
Separate the news window from the date of the internal assessment. When reporting last week’s disruptions, users may need to consider suppliers active at the time of the disruption, or suppliers active at the present time. Don’t guess which it is when joining news evidence to internal supplier status.
In this constructed example, a procurement briefing requests production disruptions during the previous week among suppliers with at least one open purchase order as of that Friday.
One of the suppliers on the enabled vendor list, Cedar Components, is reported to have temporarily shut down production at their plant. At the time of the purchase snapshot there were no open orders for Cedar Components. Nevertheless, the agent includes Cedar in the requested briefing list.
In this case the news article is not in error. The error lies in using the enabled vendor flag to include Cedar in the list, when in fact Cedar should not have been included based on the approved rule.
Prior to requesting and classifying news articles the application should determine which suppliers qualify based on the approved rule and purchase snapshot. Cedar Components should not be included in the list requested for this briefing. The business may still want to monitor the company in a separate request for possible future supply risk.
Webz.io’s News Search API takes natural language queries and returns relevant articles with matching text. Users can set filters on publication date and source to define the time frame and news sources of interest. Use the results of the News Search API to evaluate the claim that a production interruption occurred. Your application must obtain private supplier status through its authorized internal data access.
Don’t combine the news reference and the justification for including the news in the briefing into a single claim. Use the news reference to support “Cedar reported a shutdown” and the purchasing snapshot and rule to support “Cedar is not an active supplier in this briefing.” Do not attribute that internal classification to the news publisher.
When constructing a briefing using Webz.io, include the version of the rule used and the date of the purchasing snapshot taken, in addition to the time frame of the news search. The reviewer should be able to reproduce the supplier selection to evaluate the justification for including the news in the briefing. Webz.io’s website has additional examples of how to locate news about a company’s business.
If the rule is not present or the purchasing snapshot cannot be interpreted, inform the requesting user of this limitation. Do not translate missing supplier status into ‘inactive’ or assume the existence of an open order based on recent news articles.
Create a fixture of news articles and supplier records to use in testing. Run the Cedar test case with the open order rule, then with the approved enabled vendor rule. The news articles should not be altered in any way between the tests. The expectation is that the article would be included in the latter test, but not the former, based on the change in the business definition.
After each test the reasoning behind the classification decision should be saved and include the name of the rule used and the name of the snapshot taken. Failing to do so would constitute a test failure. Also fail the test if a cached classification survives the rule change without reevaluation.
Repeat the request with the internal snapshot disabled. The agent should still be able to summarize the reporting while explaining why active-supplier membership could not be established.
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.