Import with an AI agent
Bring a workflow or a prompt from any tool, without an export button.
n8n can export a file. Most tools cannot: Make, Zapier, LangChain or your own code have no export we can read. For everything else, an AI agent does the export. Give it our prompt and your workflow, and it answers with a small JSON that Test AI models imports in one click. Any agent works: Claude, ChatGPT, Codex, Cursor or Gemini.
The three steps
- Copy the prompt. Open Import, then With an AI agent, on a workflow (for every step) or on New Test (for one prompt), and press Copy prompt. The same prompts are below.
- Paste it into your AI agent, with your workflow. Add your code, a description, a screenshot or an export from the tool you use.
- Paste the agent's answer back. Press Check the answer. On a workflow you see every step, tick the ones you want, check the models and add them. On New Test the form is filled and a green line says what came in, with Undo.
The workflow prompt
For a workflow with one or more steps that call a model. Use it from Import on a workflow.
You are helping me move an AI workflow into Test AI models so I can compare models on it.
Read the workflow I give you (code, a description, a screenshot or an export from any tool) and find every step that calls a language model. Answer with ONE JSON object and nothing else, in exactly this shape:
{
"format": "testaimodels.workflow.v1",
"name": "short name of the workflow",
"steps": [
{
"name": "what this step does",
"provider": "anthropic | openai | google | xai | perplexity | deepseek | mistral | qwen | moonshot | other",
"model": "the model id it uses now, e.g. gpt-4o-mini",
"system_prompt": "the system prompt, or null",
"prompt": "the prompt, with every changing input written as {{variable_name}}",
"variables": { "variable_name": "one realistic sample value" },
"output_format": "text, or the JSON schema the step must answer with",
"temperature": 0.2,
"max_tokens": 1024
}
]
}
Rules:
- Never include API keys, tokens or passwords.
- Replace real names, emails and customer data with a {{variable}} and an invented sample value.
- Give every {{variable}} one sample value in "variables".
- Leave out a field you cannot find. Never guess a model: if the model is not written in the workflow, leave "model" out.
- Answer with the JSON only, no other text.The test prompt
For one prompt. Use it from Import on New Test. Variables are filled in with their sample values, and the quality rule, when there is one, is kept for the quality check after the run.
You are helping me test one AI prompt in Test AI models so I can compare models on it.
Find the prompt I use (in my code, a description, a screenshot or an export from any tool) and answer with ONE JSON object and nothing else, in exactly this shape:
{
"format": "testaimodels.test.v1",
"name": "short name for this test",
"system_prompt": "the system prompt, or null",
"prompt": "the prompt, with every changing input written as {{variable_name}}",
"variables": { "variable_name": "one realistic sample value" },
"models": ["the model ids I use for it today, e.g. gpt-4o-mini"],
"max_tokens": 1024,
"temperature": 0.2,
"quality_rule": "optional: one sentence a good answer must meet"
}
Rules:
- Never include API keys, tokens or passwords.
- Replace real names, emails and customer data with a {{variable}} and an invented sample value.
- Give every {{variable}} one sample value in "variables".
- Leave out a field you cannot find. Never guess a model: list only models written in what I gave you.
- Answer with the JSON only, no other text.A worked example
An example, not a real customer: a support team's ticket workflow in LangChain, pasted into Claude with the workflow prompt. This is the answer it came back with. Imported, it becomes two steps, each with its model matched in our catalogue and its sample ticket filled in.
{
"format": "testaimodels.workflow.v1",
"name": "Support replies",
"steps": [
{
"name": "Classify the ticket",
"provider": "openai",
"model": "gpt-4o-mini",
"system_prompt": "You sort customer support tickets into billing, bug or other.",
"prompt": "Classify this ticket and answer with one word.\n\n{{ticket_text}}",
"variables": {
"ticket_text": "Hi, I was charged twice for my November invoice. Can you check?"
},
"output_format": "text",
"temperature": 0,
"max_tokens": 10
},
{
"name": "Draft the reply",
"provider": "anthropic",
"model": "claude-haiku-4-5",
"system_prompt": "You write short, friendly support replies.",
"prompt": "Write a reply to {{customer_name}} about this ticket:\n\n{{ticket_text}}",
"variables": {
"customer_name": "Alex",
"ticket_text": "Hi, I was charged twice for my November invoice. Can you check?"
},
"output_format": "text",
"temperature": 0.4,
"max_tokens": 400
}
]
}What is safe
- The answer is read in your browser only. It is never uploaded, stored or run.
- Anything that looks like an API key is masked, and you are told so you can rotate it.
- A model we do not have is flagged, never guessed. You pick the models to test on.
- Nothing is saved until you confirm, and importing costs no credits. Credits are only used when you run.