Build a custom GPT that answers food questions with live Dietly data

A Custom GPT can use Dietly as a live food lookup instead of guessing nutrition values, by importing Dietly's OpenAPI schema as an Action. The whole job is to give the GPT one narrow retrieval task: when a user asks about a specific food, search Dietly, then report the returned product name with its per-100 g values and say when a field is missing. This page covers the setup, the instruction that keeps answers grounded, and the tests to run before you share it.

How the pieces fit

A Custom GPT with an Action is a thin layer over an HTTP API. You import an OpenAPI schema, the editor turns each described operation into a callable action, and the model decides when to call it. For Dietly the useful operation is GET /search, which returns a JSON array of foods. Nothing about the model changes; you are giving it a reliable way to fetch real numbers.

1. Create an Action from the schema