AI
SCHub
Back to Blog
Hands-On16 min read

Prompt Engineering for Supply Chain: Getting the Most Out of ChatGPT & Claude

Why Prompting Matters More Than the Tool

Here is a scenario that plays out thousands of times a day: two supply chain analysts, both using ChatGPT, both analyzing the same shipment data. One gets a vague, unhelpful summary that reads like a textbook introduction. The other gets a detailed analysis with specific KPIs, actionable recommendations, and a clean visualization. The difference is not the tool -- it is how they asked.

Prompt engineering is the skill of communicating effectively with AI systems to get the outputs you actually need. For supply chain professionals, this is arguably the most impactful AI skill you can develop right now, because it requires zero coding, zero budget, and zero organizational change. You can start improving your results today, with the AI tools you already have access to.

The landscape of AI assistants available to supply chain professionals is remarkably rich. ChatGPT (free tier or Plus at $20/month) is widely used for data analysis via its Code Interpreter, report writing, and code generation. Claude ($20/month for Pro) excels at processing large documents with its 200K context window -- ideal for carrier rate sheets, contracts, and complex datasets. Microsoft Copilot for 365 ($30/user/month add-on) embeds AI directly into Excel, Outlook, and Teams. Google Gemini integrates with Google Sheets and Workspace.

But regardless of which tool you use, the quality of your output is determined by the quality of your input. A prompt is not just a question -- it is a specification for the work you want done. The better the specification, the better the result. This article will teach you how to write specifications that get supply chain work done at a level that would have required a dedicated analyst just two years ago.

Prompt Engineering Fundamentals

Effective prompts for supply chain work follow a consistent structure. Think of it as the CRAFT framework: Context, Role, Action, Format, and Tone. Let's break each element down with supply chain examples.

Context is the background information the AI needs to give you a relevant answer. Instead of "analyze this data," try: "I am a demand planner at a mid-size CPG company. We have 3,000 SKUs across 12 distribution centers. I am preparing for next week's S&OP meeting and need to identify the top demand forecast misses from last month." Context eliminates the AI's need to guess what you mean, which is where most bad outputs originate.

Role tells the AI what perspective to adopt. "Act as a senior supply chain analyst with 15 years of experience in FMCG distribution" produces very different output than no role specification at all. For technical analysis, try roles like "supply chain data scientist" or "transportation optimization specialist." For communications, try "VP of Supply Chain preparing a board presentation." The AI will calibrate its vocabulary, depth, and assumptions accordingly.

Action, Format, and Tone complete the specification. Action is what you want done (analyze, compare, recommend, draft, calculate). Format specifies how you want the output (bullet points, table, executive summary, Python code, email). Tone sets the communication style (technical, executive-friendly, conversational, formal). A complete prompt might look like: "As a supply chain analyst [Role], given our Q4 carrier performance data [Context], identify the top 5 underperforming lanes [Action] in a table format with columns for lane, target OTD, actual OTD, volume, and recommended action [Format], written for a logistics director audience [Tone]."

Supply Chain Data Analysis Prompts

Data analysis is where AI assistants deliver the most immediate value for supply chain professionals. Both ChatGPT (via Code Interpreter) and Claude allow you to upload CSV or Excel files and analyze them through conversation. The key is being specific about what you want to learn and how you want it presented.

For demand pattern analysis, a strong prompt template is: "Analyze the attached demand data for [product category]. Identify: (1) overall trend direction and magnitude, (2) seasonal patterns with peak/trough months, (3) any structural breaks or anomalies, (4) top 5 SKUs by demand volatility. Present the results as a structured summary with supporting statistics, then generate a time series chart showing the overall trend with seasonal overlay." This gives the AI a clear analytical framework to work within, rather than hoping it guesses what you care about.

For KPI calculation and benchmarking, try: "Using the attached shipment data, calculate the following KPIs by carrier and by lane: (1) on-time delivery percentage (define on-time as within 1 day of promised date), (2) damage rate per 1,000 shipments, (3) average transit time vs. published transit time, (4) cost per mile. Flag any carrier/lane combination that falls below the 25th percentile on two or more metrics. Output as a formatted table sorted by overall score." By defining your metrics explicitly (like the 1-day tolerance for on-time delivery), you eliminate ambiguity and get consistent results.

For outlier detection and root cause investigation, prompt: "Analyze the attached inventory data for anomalies. Flag any SKU-location combination where: (1) days of supply exceeds 90, (2) turns are below 2.0, (3) there have been 3+ stockouts in the past 6 months alongside excess inventory. For each flagged item, hypothesize the most likely root cause (demand planning error, safety stock misconfiguration, supplier lead time change, or minimum order quantity constraint) based on the data patterns." This structured approach turns a generic data dump into an actionable exception report.

Report and Document Generation

Supply chain professionals spend a staggering amount of time on documents -- S&OP reports, supplier scorecards, RFPs, SOPs, training materials, and executive updates. AI assistants can cut document creation time by 60-80% when prompted correctly.

For S&OP executive summaries, use a structured prompt like: "Draft an S&OP executive summary for [month/year]. Structure it as: (1) Demand Review -- key variances from plan, top 5 over/under performers, (2) Supply Review -- capacity constraints, supplier issues, (3) Inventory Position -- weeks of supply by category, excess/obsolete trending, (4) Financial Reconciliation -- revenue risk/upside from supply constraints, (5) Key Decisions Needed -- prioritized list with recommended actions and trade-offs. Keep the total length under 2 pages. Use bullet points. Lead each section with the single most important insight." Then paste or upload the underlying data for each section.

For RFP drafts, provide comprehensive context: "Draft an RFP for domestic LTL transportation services. We are a [industry] company shipping [volume] per year across [geography]. Key requirements: (1) EDI 214/990/997 capability, (2) API-based tracking integration with our TMS, (3) dedicated account management, (4) volume-tiered pricing, (5) fuel surcharge methodology transparency. Structure the RFP with company overview, scope of services, technical requirements, pricing schedule, performance metrics (with specific targets for on-time delivery, claims ratio, and invoice accuracy), and evaluation criteria with weightings." The more specific your requirements, the less editing you will need to do afterward.

For SOPs and training materials, prompt: "Create a standard operating procedure for receiving inbound shipments at our distribution center. Target audience is new warehouse associates with no prior logistics experience. Include: step-by-step process from dock scheduling to putaway completion, common exceptions and how to handle them (short shipments, damaged goods, wrong items), system entries required in our WMS at each step, safety protocols, and quality checkpoints. Use numbered steps with clear action verbs. Include a decision tree for exception handling." Claude's long context window is particularly useful here, as you can upload existing partial documentation and ask it to expand, standardize, and improve it.

Decision Support Prompts

One of the most powerful and underutilized applications of AI assistants in supply chain is structured decision support. Rather than asking the AI to make decisions for you, use it to structure the decision-making process, identify trade-offs, and pressure-test your thinking.

For scenario comparison, try: "I need to decide between three options for our West Coast distribution strategy: (A) keep our current single DC in Los Angeles, (B) add a second DC in Portland, (C) switch to a 3PL network with DCs in LA, Portland, and Phoenix. For each option, analyze: (1) estimated annual transportation cost impact, (2) average delivery time to our top 20 customers, (3) capital investment required, (4) risk profile (single point of failure, scalability, flexibility), (5) operational complexity. Present as a comparison matrix, then provide a recommendation with caveats." Include any relevant data about your current network, volumes, and customer locations.

For root cause investigation, use a structured analytical framework: "Our fill rate dropped from 96% to 89% over the past 8 weeks. Help me investigate systematically. Apply the '5 Whys' methodology and consider the following potential root causes: (1) demand forecast accuracy degradation, (2) supplier lead time increases, (3) safety stock parameter misalignment, (4) inventory record accuracy issues, (5) warehouse capacity constraints affecting putaway speed. For each potential cause, describe what data I should look at to confirm or rule it out, and what the signature pattern would look like in the data." This turns the AI into a thinking partner that structures your investigation rather than jumping to conclusions.

For risk assessment, prompt: "We are evaluating a supplier switch for our top-selling product line from a domestic supplier to a manufacturer in Vietnam. Build a comprehensive risk assessment covering: supply continuity risk (lead time variability, capacity constraints, geopolitical factors), quality risk (inspection requirements, defect rate expectations, certification needs), financial risk (currency exposure, tariff exposure, total landed cost sensitivity analysis), and operational risk (communication time zones, language, documentation requirements). For each risk category, rate severity (1-5) and likelihood (1-5), and propose specific mitigation strategies." Tools like Interos.ai and Everstream Analytics provide data-driven risk assessments, but an AI assistant can help you structure the framework before investing in specialized platforms.

Code Generation for Supply Chain

Even if you are not a programmer, AI assistants can generate working code for supply chain analysis tasks. This is particularly powerful for repetitive data processing, custom visualizations, and basic forecasting -- tasks where a Python script can replace hours of manual Excel work.

For data cleaning and transformation, prompt: "Write a Python script that: (1) reads all CSV files from a specified folder (these are weekly shipment exports from our TMS), (2) standardizes the date format to YYYY-MM-DD, (3) maps carrier SCAC codes to carrier names using a reference table I will provide, (4) removes duplicate records based on PRO number, (5) calculates transit time as the difference between delivery date and ship date, (6) flags any records with missing or invalid data, (7) outputs a single consolidated file and a data quality summary. Include comments explaining each step so I can modify it later." The AI will generate a complete, documented script that you can run with minimal Python knowledge.

For basic forecasting models, try: "Write a Python script that: (1) reads my monthly demand data (columns: date, SKU, quantity), (2) fits a seasonal decomposition for the top 20 SKUs by volume, (3) generates a 6-month forecast using exponential smoothing with seasonality, (4) calculates MAPE (Mean Absolute Percentage Error) on a holdout set of the last 3 months, (5) outputs the forecast with confidence intervals as a CSV, (6) generates a visualization showing historical demand, forecast, and confidence bands for each SKU. Use the statsmodels library." This gives you a prototype forecasting model that you can compare against your current process -- and it is often the starting point for a business case to invest in a purpose-built tool like RELEX Solutions or ToolsGroup SO99+.

For Excel automation via Python, prompt: "Write a Python script using openpyxl that: (1) reads my weekly inventory report Excel file, (2) adds conditional formatting -- red for items with less than 2 weeks of supply, yellow for 2-4 weeks, green for 4-8 weeks, (3) adds a pivot summary sheet with inventory value by product category and warehouse, (4) generates a chart showing weeks-of-supply distribution, (5) saves the formatted file with today's date in the filename. I want to run this every Monday morning after I download the report from our ERP." These automation scripts are how many supply chain professionals take their first steps into Stage 5 territory without a formal data science background.

Communication and Stakeholder Management

Supply chain is fundamentally a cross-functional discipline, and communication is often the bottleneck. AI assistants are remarkably effective at helping you translate supply chain complexity into clear, audience-appropriate communications.

For executive briefings, prompt: "I need to brief our CEO on a critical supply disruption. A key supplier for our top product line has declared force majeure due to flooding at their manufacturing facility. Draft a one-page executive briefing that covers: (1) situation summary in 2-3 sentences, (2) immediate business impact (revenue at risk, customer commitments affected), (3) actions already taken, (4) options for resolution with timeline and cost for each, (5) my recommendation and why. Write in a direct, confident tone. No supply chain jargon -- the CEO is a finance background. Lead with the financial impact." This kind of prompt produces output that is ready to send after minor editing, saving you the hour it would otherwise take to draft, revise, and simplify.

For supplier communications, use prompts like: "Draft a professional but firm email to a supplier who has missed their delivery commitment for the third consecutive month. Our contract specifies 95% OTIF and they are at 82%. I want to: (1) acknowledge the relationship value, (2) present the performance data clearly, (3) state the impact on our operations, (4) request a formal corrective action plan within 10 business days, (5) note that continued underperformance will trigger our alternative sourcing clause. Keep the tone professional -- we want improvement, not a fight." The AI handles the diplomacy while you focus on the substance.

For cross-functional alignment, try: "Help me prepare talking points for presenting our supply chain capacity constraints to the sales team. They are pushing for a 25% increase in promotional volume next quarter, but our warehouse is already at 92% capacity and our key supplier has a 12-week lead time. I need to: (1) validate their commercial opportunity, (2) present the constraints without sounding like I am saying 'no,' (3) propose alternative approaches (phased promotion, different product mix, temporary warehouse space), (4) frame it as a shared problem to solve together. Audience: VP of Sales and 5 regional directors." Using AI to prepare these stakeholder interactions helps you anticipate objections and find collaborative solutions before the meeting.

Advanced Techniques

Chain-of-thought prompting is essential for complex supply chain analysis. Instead of asking for a final answer, ask the AI to show its work: "Walk me through step by step how you would analyze whether we should consolidate our three regional warehouses into one central facility. At each step, explain your reasoning, state any assumptions you are making, and identify what additional data would improve the analysis." This produces more reliable outputs because you can spot where the AI's reasoning diverges from your reality and correct course before it reaches a flawed conclusion.

Few-shot prompting means giving the AI examples of the output format you want before asking it to generate new content. "Here is an example of how I format a supplier scorecard: [paste example]. Now generate scorecards for the following 5 suppliers using the attached performance data, following the same format, structure, and scoring methodology." This is dramatically more effective than describing the format in words, especially for complex templates that involve specific calculations or visual layouts.

Role-play for stress-testing is an underused technique. "I am going to present a business case for investing $500K in a new demand planning platform. Play the role of our skeptical CFO and challenge every assumption, ask tough questions about ROI timeline, and point out risks I might be overlooking. After each of my responses, follow up with increasingly detailed questions." This is an incredibly effective way to prepare for stakeholder presentations -- the AI often raises objections you had not considered.

Multi-step analysis workflows chain multiple prompts together for complex tasks. Start with data analysis ("Analyze this demand data and identify the top 20 SKUs with the highest forecast error"), then pivot to root cause investigation ("For the top 5 SKUs from the analysis above, examine the attached POS data and supplier lead time data to hypothesize root causes"), then generate recommendations ("Based on the root causes identified, draft specific corrective actions for each SKU with expected improvement targets and responsible parties"). Each step builds on the previous one, creating an analysis depth that would be impossible with a single prompt.

Prompt Library: 25 Ready-to-Use Supply Chain Prompts

Planning (1-5):

  • 1. Forecast Accuracy Analysis: "Analyze the attached forecast vs. actual data. Calculate MAPE, bias, and tracking signal by product family. Identify the top 10 SKUs contributing most to forecast error. For each, suggest whether the error pattern indicates bias (consistently over/under) or volatility (random variance), and recommend a specific corrective action."
  • 2. S&OP Data Prep: "Using the attached demand, supply, and inventory data, prepare an S&OP data package: (a) demand vs. plan variance by category, (b) supply constraints summary, (c) inventory health by DC -- weeks of supply and excess/obsolete trending, (d) top 10 risks and opportunities. Format for executive presentation."
  • 3. Safety Stock Review: "Review the attached inventory parameters. For each SKU-location, calculate the theoretical safety stock using [demand variability x lead time variability x z-score for 95% service level]. Compare to current safety stock settings. Flag items where current settings are more than 20% above or below the calculated optimal."
  • 4. New Product Forecast: "We are launching a new [product type] in [category]. Identify 3-5 analogous products from our historical data based on price point, category, and target customer. Use their launch trajectories to project a 12-month demand curve for the new item."
  • 5. Scenario Modeling: "Model three demand scenarios for next quarter: (a) base case using current forecast, (b) upside if our new marketing campaign delivers a 15% lift, (c) downside if the economy weakens and we see a 10% decline. For each scenario, calculate required inventory investment and warehouse capacity needs."

Procurement (6-10):

  • 6. Spend Analysis: "Categorize the attached PO data by commodity using UNSPSC codes. Identify the top 10 categories by spend, number of suppliers per category, and fragmentation index. Highlight categories where consolidation could yield 10%+ savings."
  • 7. Supplier Scorecard: "Generate quarterly scorecards for each supplier in the attached data. Metrics: on-time delivery %, quality rejection rate, invoice accuracy, lead time consistency. Weight: 40% delivery, 30% quality, 15% invoice accuracy, 15% lead time. Rank suppliers and flag any scoring below 70%."
  • 8. RFP Questions: "Generate 25 evaluation questions for an RFP for [service type]. Cover: technical capabilities, capacity, technology/systems, sustainability, financial stability, references, and pricing structure. Include a scoring rubric for each question."
  • 9. Contract Risk Review: "Review the attached supplier contract. Identify: (a) clauses that create risk for the buyer, (b) missing standard protections, (c) ambiguous language that could cause disputes, (d) force majeure limitations, (e) termination clause implications. Summarize in a risk matrix."
  • 10. Total Cost Analysis: "Build a total cost of ownership model comparing the attached quotes from 3 suppliers. Include: unit price, freight, duties/tariffs, quality costs (inspection, rejection rate), inventory carrying cost (based on lead time), and risk premium for geographic/financial risk factors."

Logistics (11-15):

  • 11. Carrier Performance: "Analyze carrier performance from the attached shipment data. Rank carriers by: (a) on-time delivery, (b) damage claims per 1,000 shipments, (c) invoice accuracy, (d) cost per mile by lane. Identify underperforming lanes and recommend carrier reallocation."
  • 12. Mode Optimization: "Analyze the attached shipment data to identify opportunities for mode conversion. Flag shipments currently using expedited/air that could move to ground based on lead time availability. Calculate potential savings."
  • 13. Network Analysis: "Given the attached customer demand data and DC locations, calculate the average distance-weighted delivery time for our current network. Then model the impact of adding a DC in [location] on average delivery time and transportation cost."
  • 14. Freight Spend Report: "Create a monthly freight spend report from the attached invoice data. Break down by: mode, carrier, lane, customer, and product category. Calculate month-over-month trends and flag any spend categories growing faster than volume."
  • 15. Claims Analysis: "Analyze the attached freight claims data. Identify patterns by: carrier, lane, commodity, packaging type, and season. Calculate claims rate trends and estimate annual financial impact. Recommend targeted interventions for the top 5 claim categories."

Warehouse (16-20):

  • 16. Productivity Analysis: "Analyze the attached labor data. Calculate picks per hour, lines per hour, and cost per order by shift, zone, and associate. Identify top and bottom performers and calculate the productivity gap. Recommend targeted improvements."
  • 17. Slotting Review: "Using the attached order data (90 days), identify SKUs that should be reslotted based on velocity changes. Flag items in prime pick locations with declining velocity and fast-movers currently in non-optimal locations."
  • 18. Cycle Count Prioritization: "Using the attached inventory data, create a cycle count priority matrix. Classify items by: (a) value (ABC by dollar volume), (b) velocity (XYZ by transaction frequency), (c) last count date, (d) known discrepancy history. Recommend a daily count schedule."
  • 19. Space Utilization: "Analyze the attached warehouse capacity data. Calculate utilization by zone, level, and area type. Identify underutilized areas and overflowing zones. Recommend reallocation strategies to improve overall utilization from current [X]% to target [Y]%."
  • 20. Receiving SOP: "Draft a standard operating procedure for inbound receiving. Include: dock scheduling, unloading protocols, quantity and quality verification steps, damage documentation, system receiving transactions, putaway assignment logic, and exception handling for short shipments, overages, and quality holds."

Customer Service and General (21-25):

  • 21. OTIF Root Cause: "Our OTIF performance is [X]%. Break down the miss categories from the attached data: late shipment, short shipment, wrong item, damaged. For each category, analyze patterns and recommend the top 3 corrective actions with expected improvement impact."
  • 22. Customer Segmentation: "Segment our customers from the attached data by: order frequency, average order value, product mix complexity, and delivery requirements. Recommend service-level tiers and the supply chain capabilities needed for each tier."
  • 23. Business Case Draft: "Draft a business case for investing in [technology/project]. Include: executive summary, problem statement with quantified pain points, proposed solution, expected benefits (quantified), implementation timeline, investment required, ROI analysis, and risks/mitigations."
  • 24. Meeting Summary: "Summarize the attached meeting notes from our S&OP meeting. Extract: (a) key decisions made, (b) action items with owners and due dates, (c) open issues requiring escalation, (d) risks identified. Format as a one-page summary suitable for distribution to attendees and leadership."
  • 25. Training Material: "Create a training guide for new supply chain analysts on how to use our [system/process]. Structure as: overview and purpose, step-by-step procedures with screenshots placeholders, common errors and troubleshooting, FAQs, and a quick-reference cheat sheet."

Common Mistakes and Best Practices

Mistake 1: The vague prompt. "Analyze my supply chain data" is the equivalent of walking into a consultant's office and saying "fix my business." The AI has no idea what data, what analysis, or what outcome you want. Always specify the data source, the analytical question, the output format, and the audience. Every minute you spend sharpening your prompt saves five minutes of editing a mediocre response.

Mistake 2: Trusting without verifying. AI assistants can and do produce plausible-sounding nonsense -- this is called hallucination. When ChatGPT tells you "the average warehouse picking rate in the industry is 150 units per hour," it might be right, or it might have fabricated that number. Always verify specific statistics, formulas, and calculations against known sources. Use AI for structure, speed, and first drafts -- use your domain expertise for validation. McKinsey's reported 20-50% forecast error reduction figure is real and sourced; random statistics in AI outputs may not be.

Mistake 3: Ignoring privacy and data sensitivity. Before uploading supply chain data to any AI assistant, understand your company's data policy. Most enterprise agreements (ChatGPT Enterprise, Claude for Enterprise) include data privacy protections, but free-tier consumer versions may use your data for model training. Never upload customer PII, proprietary pricing data, or confidential supplier information to a consumer AI tool. If in doubt, anonymize the data first -- replace customer names with Customer A/B/C, mask specific prices, and remove identifying information.

Best Practice: Iterate, don't restart. Your first prompt rarely produces the perfect output. Instead of starting over with a completely new prompt, iterate: "This is good, but make the financial impact section more specific -- include dollar ranges, not just percentages." Or: "Revise the analysis to focus only on the top 10 SKUs by revenue impact." Iteration is faster and often produces better results than trying to craft the perfect prompt on the first try. The most effective supply chain prompt engineers treat AI interaction as a conversation, not a one-shot query.