Back to Blogs

🔎 How to Easily Build a Web-Search-Powered AI Agent!

Build an AI Agent that can use web-search tool and a static data source search tool live to answer questions.

Josh York, Mohit SarafApr 22, 2025
AI Agent
Voice Agent
Tutorial
No Code
Call Center Ai
Customer Service AI

Voice Ai Agents powered by accurate, up-to-date information transform customer interactions! Today we're going to build an AI agent that can use web-search live to centralize your website as the source-of-truth to answer customer questions over the phone. We'll also add a static data-store to keep company policies, warranty information, and the like handy.



0:00 Intro
0:20 What are Web Search and Data Source Search Tools?
0:40 Starting off with AI Agent prompt creation
1:35 Create your Agent's greeting
1:56 Adding data tools to your AI Agent
2:16 Build your Agent with ease
2:54 Chat with your Agent
3:40 Interact with your Agent over voice

I am a huge music fan, and own many instruments, so I'll be using one of my favorite brands as my example, but you can use any website.

🛠️ Step 1: Creating Your Agent’s Prompt and Tools

Start by creating a prompt tailored to your agent’s purpose. Our Music agent helps customers find product information and policies, so we’ll use two powerful tools:

  • Web Search Tool: Enables your agent to search your website, turning it into a single source of truth for dynamic content like product descriptions or availability.

  • Data Source Search Tool: Allows your agent to pull information from a static data source, perfect for policies, warranties, or other structured content.

  • Click Prompt → New Prompt.

  • Fill out the Provider, Model, and Version fields.

  • Under Tools, select:

    • âś… Web Search

    • âś… Data Source Search

    • âś… Hang Up

  • Clearly instruct the agent to utilize these tools in your Prompt Text.

  • An easy example prompt from video:

    • You are a support agent for a music company.

      Your primary function is to assist users with general product information.

      You can use the web_search tool to answer questions related to products.
      You can use the data_source_search tool to look for information related to support policies like refunds, shipping, warranties and department information like address, phone number, etc.

  • Click Save.

👋 Step 2: Crafting Your Agent’s Greeting (Messages)

Next, define the greeting your agent will use when answering calls. This is your customer's first impression, so keep it concise and welcoming.

  • Click Message → New Message.

  • Enter your greeting. For my example, I used:

    “Thank you for contacting Music Company Support! How can I help you today?”

  • Click Save.

(You can set multiple greetings based on days or times, but a single greeting works for now.)

📚 Step 3: Adding a Data Source

Now, let’s create your static data source. This is useful for unstructured information that rarely changes, such as refund policies or warranty details.

  • Click Data Source → New Data Source.

  • Name your data source clearly (e.g., “Company Policies”).

  • Type out or paste relevant policy content or structured data into the provided text box. (I copied the e-commerce agent's prompt details)

    • Company policies: Orders are processed within 1-2 business days after confirmation, with standard shipping taking typically 5-7 business days, expedited shipping 2-3 business days, and overnight shipping available for next business day delivery if orders are placed by 2pm PST. Shipping costs are calculated at checkout, offering free standard shipping on orders over $100, and various shipping methods are available, including standard, expedited, and overnight. Once shipped, customers receive a confirmation email with tracking information active within 24 hours, and are responsible for any customs, duties, and taxes on international orders. Returns are accepted within 30 days of delivery for unused items in original packaging. Return shipping costs are free to the customer. Approved refunds are processed within 7-10 business days to the original payment method.

  • Click Save.

With your prompt, message, and data source ready, you’re all set to build your agent.

👷‍♂️ Step 4: Building Your Agent

Navigate to the Agents section to bring everything together:

  • Click Agents → New Agent.

  • Name your agent clearly (e.g., “Music Company Support Agent”).

  • Select the Prompt and Greeting Message you previously created.

  • Under Tools Configuration:

    • Click Web Search and input your website URL.

    • Click Data Source Search and select your recently created data source.

  • Choose additional preferences (e.g., voice options, busy sounds, etc).

  • Click Save.

Your agent is now ready for testing!

đź’Ż Step 5: Testing Your Agent

Test your agent via text to ensure both web and data source searches function correctly,

đź’ˇ Tip: You'll see a tag appear on the reply that indicates the tool was called

  • Click Test Chat.

    • âś… Enter a query about a specific product detail to test web search.

    • âś… Enter a policy-related question to test data source search.

  • Confirm your agent retrieves accurate answers for both queries.

🗣️ Step 6: Going Live with Voice

Give your agent a real-world test by placing a call. First we'll add a voice channel:

  • Click Channels → New Channel.

  • In Mode select "Voice."

  • In Channel name select "syllable-voice"

  • Channel target select your agent's phone number

  • Enter your fallback number with country code. In the US that's +1. I used my cell phone # here.

  • Under Agent, connect it to the agent you just created.

  • Click Save.

  • Call the provided phone number and interact with your agent:

Agent:

“Thank you for contacting Music Company Support! How can I help you today?”

Customer:

“Hi, can you tell me about your return policy, please?”

Agent:

“Our return policy allows returns within 30 days of delivery for unused items in their original packaging.”

Simple, smooth, and effective!

And that’s all there is to it. With web and data source search tools, your AI Agents can deliver reliable and up-to-date information seamlessly.

Ready to build smarter agents for every idea?

Start Building Your Agent Today →