Web search action

Let the agent search the web when your sources do not hold the answer, and use blocked domains in Guardrails to keep it away from sites you do not want.

Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.

The Web search action lets the agent look up information online when its sources do not cover a question. Use it for public facts that change, such as a carrier's holiday schedule or a standard that your product supports, while your own sources stay the first place the agent looks.

Turn it on

  1. Open the agent and select Actions.
  2. Select Add action and choose Web search.
  3. Write the description: "Use this only when the question is about public information and none of the sources answer it."
  4. Turn the action on and select Save.

You should see answers in the Playground that cite a web page when the sources have nothing.

How the agent uses it

The agent checks its sources and procedures first. It searches the web only when the description matches and the sources fall short. It then writes an answer from the results and names where it came from.

Web results are not your approved knowledge. For anything about your prices, policies or product behavior, add a source or a Q&A pair instead, so the agent answers from your own words.

Control where it searches

Open Build > Guardrails and add Blocked domains to keep the agent away from sites such as competitor pages or forums. Blocked domains apply to Web search only. See Guardrails.

You can also tighten the description. "Use this only for shipping carrier questions" keeps the action narrow.

Test it

  1. Open Test > Playground.
  2. Ask a question your sources do not cover, such as a general question about a public topic.
  3. Check the trace for the Web search action and the pages it used.
  4. Ask a question your sources do cover and check that Web search was not used.

Tip: If Web search appears for questions your sources should answer, add the missing content under Build > Sources. See Data sources.

Troubleshooting

  • The agent never searches. Check that the action is on and the description is not too strict.
  • It searches too often. Add the missing answers to sources and make the description narrower.
  • It cites a site you do not want. Add the domain to Blocked domains in Guardrails.

Something unclear or missing? Tell us and we will fix the page.