> For the complete documentation index, see [llms.txt](https://developer.esw.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.esw.com/getting-started/get-started-with-esw/ai-coding-agents.md).

# Build with AI coding agents

Set up coding agents to build ESW integrations

There are two ways to get your coding agent ready for ESW. Give your agent ESW's rules, ESW agent skill and a working sandbox connection.

## Follow the guide for your agent

{% hint style="info" icon="message-bot" %}
Each guide takes about five minutes.
{% endhint %}

<table data-view="cards"><thead><tr><th align="center"></th><th align="center"></th><th data-hidden data-card-cover data-type="image">Cover image</th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td align="center"><i class="fa-claude">:claude:</i> <strong>Claude Code</strong></td><td align="center">Set up Claude Code for ESW integrations.</td><td><a href="https://2821201608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS1VBiRsVGuY2lQIOaVbI%2Fuploads%2Fge1B20UHmVjbXSFcUUfR%2Fmidweek.svg?alt=media&amp;token=a53c4916-2409-4ebe-8805-4588fff2d6b9">midweek.svg</a></td><td><a href="/getting-started/get-started-with-esw/ai-coding-agents/claude-code.md">Claude Code</a></td></tr><tr><td align="center"><i class="fa-cursor">:cursor:</i> <strong>Cursor</strong></td><td align="center">Set up Cursor for ESW integrations.</td><td><a href="https://2821201608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS1VBiRsVGuY2lQIOaVbI%2Fuploads%2F8AV0cNiUOunQWn1JvUa2%2F5aec7152-9c05-4405-9924-022b954cd379_1600x1000.webp?alt=media&amp;token=4d596a1e-3599-46ee-9c0b-80dab6df7668">5aec7152-9c05-4405-9924-022b954cd379_1600x1000.webp</a></td><td><a href="/getting-started/get-started-with-esw/ai-coding-agents/cursor.md">Cursor</a></td></tr><tr><td align="center"><i class="fa-github">:github:</i> <strong>GitHub Copilot</strong></td><td align="center">Set up GitHub Copilot for ESW integrations.</td><td><a href="https://2821201608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS1VBiRsVGuY2lQIOaVbI%2Fuploads%2Ff3xciipYGRUCWiYmh3lM%2F1782292080-gh-20copilot.avif?alt=media&amp;token=2ec0e418-2b83-4ab5-9b81-7fd6cef09d81">1782292080-gh-20copilot.avif</a></td><td><a href="/getting-started/get-started-with-esw/ai-coding-agents/github-copilot.md">GitHub Copilot</a></td></tr><tr><td align="center"><i class="fa-openai">:openai:</i> <strong>OpenAI Codex</strong></td><td align="center">Set up OpenAI Codex for ESW integrations.</td><td data-object-fit="fill"><a href="https://2821201608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS1VBiRsVGuY2lQIOaVbI%2Fuploads%2Fgv5iOSXVId0JjIqJAnmx%2Fcodex.svg?alt=media&amp;token=9c268e60-d453-46c7-a669-9fbc6f448522">codex.svg</a></td><td><a href="/getting-started/get-started-with-esw/ai-coding-agents/codex.md">Codex</a></td></tr></tbody></table>

{% hint style="info" icon="microchip" %}

#### Using another agent?&#x20;

Most agents that support Agent Skills read skills from `.agents/skills/` in your repository. Unzip the skill there, and add the docs MCP server using your agent's own MCP settings. Or use Option 2.
{% endhint %}

## Use one prompt

If you prefer, paste this prompt into your coding agent from the root of your project, and replace the last line with what you want to build. The agent reads ESW's operating guide, installs the ESW skill, checks your sandbox credentials work, and then starts building.

{% hint style="info" icon="mcp" %}
This option does not add the docs MCP server; follow [**Option 1**](/getting-started/get-started-with-esw/ai-coding-agents.md#follow-the-guide-for-your-agent) to add the docs MCP
{% endhint %}

{% code title="Copy this prompt into your agent" expandable="true" %}

```
Help me build an integration with ESW (eShopWorld) APIs.

1. Read https://developer.esw.com/agents.md and follow its rules for everything below.
2. Install the ESW agent skill: download https://developer.esw.com/esw-api-integration.zip (follow redirects) and unzip it into this repository's skills folder: .claude/skills/ for Claude Code, .github/skills/ for GitHub Copilot, otherwise .agents/skills/. Keep the folder name esw-api-integration.
3. Check that ESW_CLIENT_ID, ESW_CLIENT_SECRET, ESW_TENANT_CODE and ESW_SCOPES are set as environment variables. If any are missing, tell me which ones to set. Do not ask me to paste secrets into this chat, and never write them to files or print them.
4. Get a sandbox token and run the read-only Pricing Advisor smoke test from AGENTS.md. If it does not return 200, stop and tell me why.
5. Then help me build: <describe what you want to build, for example "send a PreOrder from my checkout and handle the Order Confirmation webhook">.

Use the ESW sandbox only, and ask me before any call AGENTS.md classes as irreversible.
```

{% endcode %}

## Before you start

* **Sandbox credentials.** You need a sandbox `client_id`, `client_secret` and tenant code from ESW. Store them as environment variables `ESW_CLIENT_ID`, `ESW_CLIENT_SECRET`, `ESW_TENANT_CODE`, never in your repository. The skill tells your agent to read them from there.
* **Production stays off by default.** The skill and `AGENTS.md` tell agents to use the sandbox unless you explicitly ask for production and provide production credentials.

## Check it works

{% code title="After setup, ask your agent" expandable="true" %}

```
Using the ESW skill, get a sandbox token and run the ESW smoke test.
```

{% endcode %}

The agent should request a token with a form-encoded body and call Pricing Advisor. A `200` response confirms your credentials, scope and tenant code. If it asks you for missing values instead of guessing, the skill is working.

<table><thead><tr><th width="210">What</th><th width="236">Where</th><th>What it does</th></tr></thead><tbody><tr><td><code>AGENTS.md</code></td><td><a href="https://developer.esw.com/agents.md">developer.esw.com/agents.md</a></td><td>The full operating guide: environments, authentication, risk classes, retries, per-API rules</td></tr><tr><td>Agent skill</td><td><a href="https://developer.esw.com/esw-api-integration.zip">developer.esw.com/esw-api-integration.zip</a></td><td>A condensed copy of <code>AGENTS.md</code> your agent loads automatically when you work on ESW code</td></tr><tr><td><code>OpenAPI</code> specs</td><td><code>developer.esw.com/openapi/&#x3C;api>.json</code></td><td>Field names, types and paths for each API</td></tr><tr><td>Docs MCP server</td><td><code>https://developer.esw.com/~gitbook/mcp</code></td><td>Lets your agent search these docs while it works</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.esw.com/getting-started/get-started-with-esw/ai-coding-agents.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
