Using DPD with AI agents
If you’re building with an AI coding agent, give it these files. They hold the same docs as this site, as plain text an agent can read in one go.
| File | What’s in it |
|---|---|
/llms.txt |
An index: what DPD is, the key facts, and links to everything below. Start here. |
/llms-full.txt |
Every page of these docs in one file. |
/_llms-txt/embed-components.txt |
Just the embed components. |
/_llms-txt/classic-buy-buttons.txt |
Just the classic buy buttons. |
/_llms-txt/rest-api-guide.txt |
The REST API guide. |
/openapi.yaml |
The REST API as OpenAPI 3.1: every endpoint, parameter and response field. |
A prompt like this one works well:
Read https://docs.getdpd.com/llms.txt, then add a product card for DPDproduct 163005 and a cart button to the header of my site. My store isdemo.dpdcart.com.For the API, hand it the OpenAPI file. Most agents (and tools like Postman and Insomnia) can build a working client from it:
Using https://docs.getdpd.com/openapi.yaml, write a script that listsyesterday's purchases from the DPD API. Read the username and APIpassword from environment variables.Keep your API password out of the chat. Have the agent read it from an environment variable or a secrets file instead.