React Agent for Web Search and Page Scraping

This React agent can perform web searches and scrape web pages based on user queries. It allows users to interact with the agent, which gathers information from the internet and provides responses with citations.
Vellum Team
Created By
Aaron Levin
Expand to interact
Created By
Aaron Levin
Last Updated
July 31, 2025
Categories
AI Agents
Web Search
Page scraping

How it Works / How to Build It

  • AgentNode: This is the main node that processes user input and generates responses. It uses a prompt to instruct the AI to act as a helpful support bot.
  • HasFunctionCalls: This node checks if the agent's response includes any function calls (like web searches or page scrapes). It routes the workflow based on whether function calls are present.
  • InvokeFunctions: If function calls are detected, this node executes them. It can handle different types of function calls, such as google_search or page_scrape.
  • AccumulateChatHistory: This node collects the chat history, including the assistant's messages and results from any invoked functions, to maintain context for the conversation.
  • FinalOutput: This node formats the final response from the agent, including any information gathered from the web.

What You Can Use This For

  • Customer support teams can use this to provide instant answers to user queries by searching the web.
  • Research teams can gather information from various sources quickly.
  • Content creators can find relevant data and citations for their work.

Prerequisites

  • Vellum account
  • Access to web scraping and search APIs (e.g., SERP API)
  • Basic understanding of how to set up workflows in Vellum

How to Set It Up

  • Clone the workflow template in your Vellum account.
  • Configure the AgentNode with your desired prompt settings.
  • Set up the InvokeFunctions node with the necessary API keys for web scraping and search.
  • Connect the AccumulateChatHistory node to ensure chat context is maintained.
  • Test the workflow by inputting sample queries and verifying the responses.
Related Templates

Discover more AI agent templates to automate different aspects of your business

AI Agents
Data extraction
E-commerce shopping agent
Created By
Anita Kirkovska
AI Agents
Page scraping
Web Search
Retail pricing optimizer agent
Created By
Rasam Tooloee
AI Agents
Data extraction
Evaluation
Web Search
Risk assessment agent for supply chain operations
Created By
Rasam Tooloee
AI Agents
Document extraction
Insurance claims automation agent
Created By
Rasam Tooloee
Content generation
LinkedIn Content Planning Agent
Created By
Nicolas Zeeb
Data extraction
Personalized healthcare explanations of a patient-doctor match
Created By
Lawrence Perera
Data extraction
Document extraction
SOAP Note Generation Agent
Created By
Anita Kirkovska
Document extraction
AI Agents
Agent that summarizes lengthy reports (PDF -> Summary)
Created By
Anita Kirkovska
Data extraction
PDF Data Extraction to CSV
Created By
Anita Kirkovska
Coding
Automated Code Review Comment Generator for GitHub PRs
Created By
David Vargas
Evaluation
AI Agents
Synthetic Dataset Generator
Created By
Nico Finelli
RAG
Chatbot / Assistant
Q&A RAG Chatbot with Cohere reranking
Created By
Aaron Levin
Document extraction
Data extraction
Evaluation
Financial Statement Review Workflow
Created By
Anita Kirkovska
Content generation
Turn LinkedIn Posts into Articles and Push to Notion
Created By
Anita Kirkovska
Chatbot / Assistant
RAG
Trust Center RAG Chatbot
Created By
Akash Sharma
sucCCESS STORIES

Hear it from our customers

We know the power of AI, but how do we make it secure and ensure that we're not compromising privacy and security while still providing value? Vellum has been a big part of accelerating that experimentation part, allowing us to validate that a feature is high-impact and feasible.
Pratik Bhat
ai Product manager
We sped up AI development by 50 percent and decoupled updates from releases with Vellum. This allowed us to fix errors instantly without worrying about infrastructure uptime or costs.
Jordan Nemrow
Co-Founder & CTO @ Woflow
Vellum helped us quickly evaluate prompt designs and workflows, saving us hours of development. This gave us the confidence to launch our virtual assistant in 14 U.S. markets.
Sebi Lozano
Sr. Product Manager @ Redfin
GET STARTED

Build any AI agent with Vellum

Get started today and transform your business with intelligent automation
👋 Your partners in AI Excellence