# Web search tool (/docs/agent/knowledge-and-tools/web-search-tool)

> Enable real-time internet access for your agent using the Web Search integration.

Web Search lets your agent retrieve up-to-date information from the
internet during a call, so it can answer questions about current events,
facts, and data that may not be in its training data or knowledge base.

## Benefits [#benefits]

- Access to real-time information
- Enhanced agent responses with factual data
- Ability to answer questions about current events

## Setup [#setup]

### Open the agent's integration tab [#open-the-agents-integration-tab]

Navigate to your agent's page and locate the Web Search toggle in the
integration tab.

![Enabling Web Search from the agent integration tab](/docs-images/guides/web-search-tool/setup.png)

### Enable Web Search [#enable-web-search]

Toggle the switch to enable Web Search. Pick a search engine (OpenAI or
DuckDuckGo). The agent configuration auto-saves.

## Usage tips [#usage-tips]

- Web Search is most effective for factual queries that need up-to-date information.
- The agent automatically decides when to invoke web search based on the query.
- For time-sensitive information (news, weather, stock prices), web search returns the most accurate responses.