Export and import with an AI assistant
Overview
An AI assistant that can run shell commands, such as Claude Code, can drive the whole Snapshot API flow from one prompt. It exports the source AI Agent, validates against the target, and explains every blocking issue and warning in plain language. It applies only after you confirm. The prompt below carries everything the assistant needs, so you can paste it as-is.
Read the prerequisites before the first import. The assistant works only through the API and cannot connect integrations, enable features, or generate API keys for you.
Limitations
- The assistant needs a way to run HTTP requests and save files. A chat-only assistant can explain the flow but cannot run it.
- Never paste API keys or secret values into a shared or logged chat. Give them to the assistant through environment variables.
- Treat the assistant’s summary as a report, not as proof. Check the target Agent in the dashboard after the apply. Read the job’s
warningsyourself. - The assistant cannot see the dashboard. Every fix the pre-import checks ask for is a dashboard step you do.
Quick start
Copy the prompt, answer its questions, and confirm before the apply. Details are in Implementation & usage.
Prepare the keys
Put the source and target API keys in environment variables or a local file the assistant can read.
Implementation & usage
How the prompt is built, what the assistant does at each step, and how to give it secrets safely.
Prerequisites
- An AI assistant with a shell tool, such as Claude Code, and
curlon the machine it runs on. - The prerequisites completed on the target Agent.
- The source and target API keys stored where the assistant can read them, for example in environment variables named
ADA_SOURCE_KEYandADA_TARGET_KEY.
Copy the prompt
Paste the block below into a new session. It embeds the endpoint reference and the confirmation step.
Run the flow
To run the export, validate, and apply flow:
- Send the prompt, then answer its six questions.
- Let the assistant export the target (if it has content) and the source. Note where it saved both archives.
- Read its validate report. For each blocking issue, do the dashboard step it names, then tell the assistant to validate again.
- When the result is
valid, read thedeletecounts andselection.unresolved, give it the secret variable names it asks for, and typeapply. - Read its final report, then work through After the apply.
Provide secret values safely
The assistant reads keys and secret values from environment variables you name, and uses them only inside request headers and bodies. Before you start, set them in the shell the assistant runs in, for example:
Then give the assistant the variable names, never the values.
Best practices
- Run the flow first against an Agent that is not live.
- Import the smallest set of sections that does the job. Say “everything” only when you mean to replace the whole Agent.
- Keep the restore-point archive the assistant saved until you have tested the target.
- Read the validate report yourself, in particular the
deletecounts and names, before you typeapply.
Related features
- Snapshot API overview: what a snapshot carries, the pre-import checks, and the limits.
- Getting started: the prerequisites checklist and the step-by-step procedure.
- Export and import with Postman: the same flow from a Postman collection built from the Agent’s API specification.
- Authentication: generate an API key.