ChatGPTGPT Actionsfunction callingtolls

Calculate tolls with ChatGPT: what exists and what you must build

There is no native ChatGPT connector for tolls; real options are a custom GPT with Actions (OpenAPI schema) or function calling from your own app against the toll API.

By Jorge Parada, CTO de Cargoffer

Calculate tolls with ChatGPT: what exists and what you must build

Direct answer: no native ChatGPT connector for Tolls Calculator is documented. Two real paths: (1) a custom GPT with an Action whose OpenAPI schema points at the toll/cost endpoints, or (2) function calling from your own app via the OpenAI API. Anything else (an installable plugin) is not documented and shouldn't be assumed.

Custom GPT with Actions

Publish an OpenAPI schema over HTTPS (e.g. server https://api.cargoffer.com, operation POST /costs/calculate), configure API-key auth in the header (Authorization: Bearer …) and instruct the GPT to always call the Action for amounts. Check OpenAI's current docs for plan requirements of Actions.

Function calling from your app

Declare a calcular_peajes tool (polyline, vehicle_class, payment_method); your backend executes the real POST https://back.transcend.cargoffer.com/api/v1/tolls/calculate and returns JSON to the model. The API key never leaves your server.

Honest limits

ChatGPT cannot produce reliable route geometry β€” feed it coordinates or use the waypoint-capable costs endpoint. Amounts are live estimates, not guaranteed prices. Plain ChatGPT without an Action answers from static knowledge: fine for method, useless for quoting.

Figures must always come from a live API call.

Frequently asked questions

Is there an official ChatGPT integration with Tolls Calculator?
None documented. Real options are a custom GPT with Actions or function calling from your own application.
Can I just ask ChatGPT for a toll price?
It will answer from static knowledge without live data; useful for method, not for quoting.
Where does the API key go?
In the Action's auth config (custom GPT) or your backend (function calling). Never in visible instructions.

Related resources

Ready to calculate tolls with live data?