Skip to main content

How to use the Web search action

Updated yesterday

Summary

This guide explains how to configure the Web search action. This action allows your agent to perform real-time web searches using Perplexity AI and return answers based on up-to-date information from the internet. It is useful when the agent needs information that is not available in your internal knowledge base.

Instructions

Follow these steps to set up and use the Web search action in Astra:

Set up the action

  • Log into your Astra account.

  • Go to Action Library.

  • Select Web Search action.

  • Open the Configuration step.

Configure action settings

1. Action intent

What to do:

  • Enter a clear action name and intent.

  • Define when the agent should perform a web search.

How it works:

  • The agent uses this intent to decide:

    • When to trigger a search

    • What kind of information to look for

  • A clear and specific intent helps:

    • Reduce unnecessary searches

    • Improve response accuracy

    • Control usage and cost

2. Authentication

What to do:

  • No setup is required.

How it works:

  • This action does not require any separate authentication.

  • You do not need to connect a Perplexity account.

  • Once saved, the action is ready to use immediately.

How the Web Search action works

When the agent triggers this action:

  • A query is sent to Perplexity AI.

  • Relevant information is retrieved from the web.

  • The agent uses this information to generate a response grounded in real-time data.

When to use this action

Use this action when:

  • Information may be outdated or missing from your knowledge base

  • You need real-time or external data

  • The query requires broader internet context

This helps your agent provide more accurate and up-to-date answers without manual intervention.

Did this answer your question?