Skip to main content

Test a Custom Tool

Testing a custom tool is like ringing a doorbell before mailing the invitation — you want to know somebody's home before you commit. One quick test confirms that the connection works, your sign-in details are accepted, and the service answers the way you expect.

A successful test showing the status code and response dataImage: A successful test showing the status code and response data


Before you start

  • A custom tool that's been filled in (either built manually, started from a template, or built with the AI Tool Creator).
  • A saved credential (sign-in details) selected on the tool.
  • A few sample values you can use as inputs — real values from your account work best (a real contact ID, a real channel name, etc.).

What a test actually does

A test makes one real call to the service using the web address, the request method, and the parameter values you provide. It's the same call your agent would make later — nothing is faked.

Where you testHow it shows up
AI Tool CreatorThe AI tests automatically while it builds the tool and shows you the result.
Manual creationThe second page of the wizard has a Test button.
TemplatesSame as manual — fill in your values on the test page, then run it.
An already-saved toolOpen it from the Custom Tools page and run a test from the same page.

Step-by-step

  1. Open the test page for your tool.
  2. Fill in a sample value for every parameter. These stand in for what the agent would normally pick at runtime — pick values you know exist in your account.
  3. Click Test.
  4. Wait a moment for the service to respond. The result appears underneath.
  5. Read the result (see "Reading the result" below).
  6. If it failed, fix the cause and run the test again. Keep going until the test passes.
  7. Once the test passes, save the tool.
tip

For your first test, pick a parameter combination that only reads data (like a "get one record by ID" call). It's safer than a test that creates or deletes something, and it still proves the connection works.

warning

A test that creates, changes, or deletes data does so for real in the connected service. Use sample or sandbox values when you can.


Reading the result

The result shows up as either pass or fail, along with a preview of what the service sent back.

Pass

A pass means: the service was reached, your credential was accepted, your parameters were valid, and a real response came back. The response preview shows the actual data — scroll through it to make sure the fields you expected are there.

Fail

A fail means one of three things is off. Check them in this order:

  1. The parameter types. Numbers sent as text (or the other way around) are the most common cause of a fail. Open the parameter list and confirm each one is set to the right type (text, number, yes-or-no).
  2. The web address. Look for typos, missing slashes, or a path piece like /contacts/{contact_id} that wasn't filled in.
  3. The credential. If the response talks about authorization, your sign-in details might be expired or the wrong account. Re-authorize the credential in Credentials.

After fixing the cause, run the test again.

A failed test showing an error messageImage: A failed test showing an error message


Attach a sample output (optional)

Once a test passes, you can attach a sample of the response to the tool so reviewers (and you, later) can see at a glance what kind of answer the tool returns. The supported sample formats are:

FormatUse for
imageA screenshot or an image the service returns
pdfA document the service returns
markdownA formatted text response
jsonA structured response — fields and values
fileAnything else the service might return

The sample is shown alongside the tool when you (or a teammate) open it for review later. It doesn't change how the tool runs — it's just a preview.


Troubleshooting

ProblemFix
The test button is grayed outA required parameter is empty, or no credential is selected. Fill in every required field and pick a credential.
The test passed but the data looks wrongCheck that you picked the right credential (sometimes there are two accounts), and that the parameters point to the record you expected.
The test fails only for one parameter combinationThat specific record might not exist in your account. Try another sample value that you know exists.
The service answers "too many requests" or asks me to waitYou've hit how many requests the service allows in a short window. Wait a minute and try again.
Everything looks right but the test keeps failingRe-open the credential in Credentials and re-authorize it — it may have expired.

What's next

Once your tool tests cleanly, hand it to an agent.