Skip to content
English
  • There are no suggestions because the search field is empty.

AI prompt library for TCMS reports

Copy-ready prompts to start, build, check and troubleshoot dashboards from TCMS exports

How to use these prompts
 
Copy a prompt, replace the text in [square brackets] and attach your CSV. Use them in order the first time: start, profile, build, check. They work with any AI assistant that can read files and run code.

Tip: Keep one conversation per dashboard. When the conversation gets long or the AI starts forgetting your rules, start a new one with the starter prompt and your data dictionary.


 
1. Start: set the context
I work in [role] at [company], a [type of transport or logistics business] in [country / time zone]. I am attaching an export from Yojee TCMS, our transport management system.  Report: [Orders Report / Order Items Report / Daily Distance] One row means: [one order / one item at one stop (pickup or delivery) / one driver on one day] Date range: [from] to [to] Times in the file are already in [time zone]. Do not convert them.  Here is our data dictionary for renamed columns: [paste your data dictionary]  Rules: - Count orders as distinct "Yojee Order No.", never as rows. - A blank Partner / Carrier Partner means our own fleet. Label it "Own fleet". - Exclude [test branches or customers, e.g. Branch = TST]. - Label blank values "Not set" so totals always reconcile. - If you are unsure what a column means, ask me. Do not guess.  Do not build anything yet. Confirm you understand and list any columns you are unsure about.2. Profile the data
Profile this file before we build anything. Show me: 1. Row count, and distinct count of Yojee Order No. (and Yojee Item No. if present) 2. Earliest and latest date in [Creation time / Completion Time] 3. For each column: % blank, number of distinct values, and the top 5 values 4. Duplicate rows on [Yojee Order No. / Yojee Item No. + Leg + Task Type] 5. Values that look like test data 6. Columns that look like codes needing a readable label (e.g. Packing mode cnt / ltl / ftl) 7. Duration or number columns containing text that will not convert Finish with the 5 data issues most likely to distort a dashboard.

Before measuring drivers, times or locations (Order Items Report)

Before any driver, time or location measure, check which rows describe real driver activity: 1. Count completions by "Completed By" (Driver, Dispatcher, Partner Driver, Partner Dispatcher), by carrier and by week 2. List service types where most delivery rows have no Arrival Time, or where delivery completion is within 2 minutes of pickup completion (likely closed automatically) 3. List carriers with almost no Geofence Arrival Time and no Completion Location (likely connected by integration, not the driver app) 4. List driver-days where most completions are under 90 seconds apart (batch completed) 5. List drivers that look like placeholders ("Unknown", TBD, TBA, or one record holding work for many vehicles) Propose which rows to exclude from each measure, and wait for my answer.3. Build the dashboard

Overview tab first

Build a single self-contained HTML dashboard file I can open in a browser. Start with one Overview tab: - KPI tiles: orders created, orders delivered, % delivered, % cancelled - Line chart: orders created per [day / week] by [Branch] - Stacked bar: orders by [Partner, blank = Own fleet] Filters at the top: date range, [Branch], [Partner]. Every filter must include "Not set", and filtered totals must add up to the unfiltered total. Use a clean, neutral style with our colours [hex codes, optional]. After building, tell me the unfiltered order total so I can check it against TCMS.

Add tabs one at a time

Add a [Carriers] tab comparing [Partner] on: orders, % delivered, DIFOT %, and median time on site. Rank carriers after the user's filters are applied, not before.
Add a DIFOT tab. Use the DIFOT, Delivered In Full and Delivered On Time columns for delivered orders only. Show next to it the % of orders that have a destination commit window (Destination commit time not "N/A"). Show DIFOT for orders with a commit window only, and the count excluded.
Add a Time on Site tab from the Order Items Report. Convert On Site Duration, Waiting Duration and Service Duration (hh:mm:ss) to minutes. Exclude negative values and values over [360] minutes, and show how many rows were excluded. Show the median and 90th percentile by delivery location (use Contact Company, fall back to the first line of Address) with visit counts, top 30 after filtering.
Add a Fleet tab from the Daily Distance file. Match columns by the start of the heading (headings may include units like "(km)"). Remove thousands separators before converting numbers. Durations are hh:mm. Show km per driver per day, tasks completed per driver per day, and depot leg km as a share of total km. Flag any driver-day over [1,000] km in a separate table for checking.
Add a Data Quality tab from the Order Items Report, counting each order once: - Missing item weight, missing dimensions - Missing postcode (only when the rest of the address is filled) - Postcode that does not match the state (Australian addresses only; long state names are not errors) Show the trend by week and the top 10 [Sender company] by number of issues.
Add a Declined Orders tab: count of orders with a Decline Reason by week, [Branch] and [Partner], plus the top reasons. Note that Decline Reason is blank on orders before it was introduced.
Add a Driver Completion tab from the Order Items Report: - % of completed stops closed by Driver vs Dispatcher (and Partner Driver vs Partner Dispatcher), by driver, carrier and week - Exclude placeholder drivers from rankings and show them in a separate table - Show median and P90 minutes from Item Created At Time to Assigned Time (dispatch lag)

Make it repeatable

Now write a Python script that rebuilds this exact dashboard from a new copy of the same CSV file. The script must: read the CSV with every column as text, apply all the rules we agreed, print the row counts in and out, print which columns it found, and write the HTML file. If a column it needs is missing, it must stop with a clear message naming the column. Add a short README explaining how to run it.

4. Check the result

Check your own work before I share this dashboard: 1. Unfiltered total orders, and the date column and range you used 2. Rows removed at each step (duplicates, test data, cancelled, outliers) with counts 3. For each tab: does the sum across all filter values equal the unfiltered total? 4. Pick 3 random Yojee Order No. values and show every figure the dashboard holds for each, so I can check them in TCMS 5. Any figure you estimated or assumed, rather than calculated from the file
TCMS shows [number] orders for [date range]. Your dashboard shows [number]. List every reason that could explain the gap, test each one against the file, and show the counts. Check: cancelled orders, duplicates, test data, date column used, time zone, rows vs distinct orders, and date range edges.

5. Troubleshoot

Symptom

Prompt to use

Numbers too high

"Are you counting rows or distinct Yojee Order No.? Recount using distinct order numbers and show both figures."

Weight or volume doubled

"Recalculate weight and volume using delivery rows only (Task Type = dropoff), counting each Yojee Item No. once."

Durations look wrong

"List every duration value that did not convert, plus any negative or over 6 hours, with its Yojee Order No."

DIFOT looks too low

"What % of delivered orders have no commit window? Recalculate DIFOT for orders with a window only."

Script stopped working after a refresh

"Compare the column headings in this new file with the last one and list anything added, removed or renamed."

A branch's chart is empty

"Are you ranking or sampling before the filter is applied? Change it to rank and sample after filtering."

File too big to upload

"Write a script I can run on my computer that summarises this file to [daily totals by branch and partner], so I only upload the summary."

The AI states something you cannot find in the file

"Show me the exact rows and columns that support that figure. If you cannot, mark it as an assumption."


Related articles