How to Use AI in API Testing: The Project Assistant (Part 1)
The project assistant is on every screen. It looks things up in your project before it answers, shows what it read, and changes nothing when you only ask. Learn to ask well and check each answer.
This is lesson 9.31, part 1, of Shift-Left API in Depth, the product track of the learning center. The earlier lesson in this track is filling tests from data. The project assistant is in every edition and needs an AI provider, set up as in bring your own LLM. On a trial, questions share the day's AI allowance with test generation. Part 1 is about asking; part 2 is about acting.
How to use AI in API testing and still check it?
The hard part of how to use AI in API testing is not getting an answer. It is knowing where the answer came from. The Shift-Left API project assistant works in a visible order: you ask in your own words, it looks things up in your project, and it answers and shows what it read. It can look at requirements, endpoints, tests and their checks, and runs and their analysis. It reads only what you could open yourself. Asking never changes anything.
How do you open the assistant?
Click the purple button at the bottom right. Without an AI provider, there is no button. Hover over it first: it says what it will ask about, such as the project home, an endpoint or a test. A line under the question box says what your question goes with. With no project open, the same button asks across all your projects, or about how the product works. Close it with Escape or the cross, and the conversation is kept.
How do you check an answer?
Start with a suggested question, such as a summary of the project and its test coverage. Then check the answer:
- Open Looked at to see every lookup, why it was made and what came back. A failed lookup is marked, so you know what the answer could not check.
- Click a chip under the answer. A chip with an arrow opens that item where you would find it yourself; a chip without an arrow is plain text.
- When you ask for a list, check the total. The answer says when it shows only part of it.
When an answer matters, check these before you act on it.
Can it ask about what is on your screen?
Yes. Open a test and the assistant knows which one is open. A small pill beside the button may show how many things are worth a look. Those findings come from the product's own checks, not from AI, and you can hide one for yourself. A link button copies a reference to the test.
To name something else exactly, type @ and at least two letters. Tests, endpoints, features, workflows, packs and requirements are listed, and the assistant gets the exact item you pick.
How does it explain a failed test?
Open a failed test and ask why it failed. When the run has been analysed, the answer opens with that analysis's verdict: the kind of problem, how sure it is, the evidence and what to do. If the assistant reads the failure differently, it says so in a box and offers to change the verdict, recorded as your decision. It never changes a verdict by itself.
You can also ask it to review a test. The review card's findings come from the product's own checks, listed from most to least severe, and a high finding opens to show its evidence.
What can you attach, and how do you ask well?
Use the paperclip, or drop a file on the box. A specification is held for about fifteen minutes, for you only, and nothing is imported until you accept an import offer. A document goes to the project's documents and stays unread until you ask. Start over puts the conversation away and begins a fresh one. Conversations started from a failure cause or a finding are kept apart and shared with your team.
For better answers:
- Ask from where the item is.
- Name things exactly, or use
@. - Say what the data cannot show, such as something true only of your staging setup.
- Ask for the total when a list looks short, or narrow it by feature or tag.
AI answers vary from run to run. If one does not help, ask again or start over.
What is sent to your AI provider?
Your provider receives your question, what is on screen and what the assistant read. Credential-shaped values are removed and long bodies are cut short. Request and response bodies are not kept in the conversation, but your own messages are, so never paste a password or a key.
Try it yourself
Open a project and click the assistant. Ask for a summary, open Looked at and click a chip. Then open a failed test and ask why it failed. You can try this in the free edition with your own AI key. The video's project is built from the sandbox store specification.
Recap
- Ask from the screen the item is on.
- Check answers with Looked at and the chips.
- A failure is explained with the run analysis's verdict when there is one.
- Use
@to name items exactly. - Asking changes nothing; you decide what happens next.
Next, see how the assistant offers changes and learns. For the broader topic, read the AI API testing guide.
Try it: Open a project, click the assistant and ask for a summary. Open Looked at and click a chip. Then open a failed test and ask why it failed.
Frequently asked questions
How do you use AI in API testing without trusting it blindly?+
Ask from the screen the item is on, then open Looked at to see each lookup, why it was made and what came back. Check the chips under the answer too. Answers vary from run to run, so ask again or start over if one does not help.
Can API testing with gen AI change my tests by itself?+
Asking never changes anything in the project assistant. When a change would help, it offers it on a card, and nothing happens unless you press it.
What do you need to use an AI assistant for API testing in Shift-Left API?+
An administrator has to set an AI provider, and you need permission to see the project's tests. The assistant is in every edition. On a trial, questions share the day's AI allowance with test generation.
Related lessons
The project assistant prepares a change on a card, and nothing happens unless you press it. Learn to read offers, create tests and workflows from a sentence, and teach it notes you can take back.
Shift-Left API doesn't ship a model of its own; you bring one. Pick a hosted provider with your own key or a self-hosted model, test the connection, and see which model reviewed your tests.
A run ends with a page of failures. Is it one problem or ten? Read how Run Triage groups them into causes with fixed rules, what each of the five verdicts allows, and how to check the evidence before you act.