Skip to content

AI-powered Web scraping Agent using AWS Bedrock Agentcore

Case Study
AI-powered Web scraping Agent using AWS Bedrock Agentcore

PROJECT OVERVIEW

An AI-powered Web Scraping Agent built on AWS Bedrock AgentCore that automatically reads, navigates and retrieves content from a target website to answer user questions with a full source citation.

PROBLEM STATEMENT

Organisations waste time manually searching websites and answering repetitive questions, while users struggle to find accurate information which leads to delays and increased support workload.

  • Manual ticket handling and repetitive query resolution by support teams
  • Scattered site content, which requires users to search multiple pages
  • Heavy reliance on support workers for questions that could be self served
  • Risk of inaccurate answers when staff respond without checking the source
  • Limited visibility into recurring support trends and common queries

SOLUTION OVERVIEW

Implemented an AI-powered Web Scraping Agent to automate website content retrieval and response generation.

  • Provides answers based on verified website content
  • Provides context aware conversations for follow up queries
  • Ensures isolated user sessions
  • Automatically crawls and discovers relevant content across the site
  • Cites the exact source page URL for every response provided
  • Suggests three contextual follow up questions after every query
  • Accessible via a simple chat interface embedded in AFIVE

METHODOLOGY

StepStageDescription
1User QueriesUser types any question in the agent chat window
2Application RoutesAFIVE routes the question to the Web Scrape Agent
3Agent NavigatesAgent reads the website, scores links and follows the most relevant pages up to 5 levels deep
4LLMScraped content is sent to the LLM for response generation
5Final ResponseA clear, structured response is returned with the source URL cited and 3 follow up question

KEY FEATURES

Web Crawling

  • Parallel scraping with up to 5 simultaneous page requests
  • Query based link scoring, agent follows the most relevant pages first
  • Configurable crawl depth, page limits, and content size caps
  • Deduplication of URLs to avoid repetitive scraping

Two Model Architecture (Not fully implemented)

  • For the questions which require scraping: Nova Micro will be used for content extraction, Claude Sonnet 4.5 will be used for reasoning
  • For the follow up questions, which do not require scraping: Claude Sonnet 4.5 will be used for extracting the content (which is stored in Bedrock AgentCore Memory), Nova Micro will be used for reasoning

Document Support

  • Detects embedded document links on scraped pages
  • Depending upon the client requirements, two approaches are implemented: The agent is programmed to read the docs and give the content and also it is programmed to just give the links to those docs and not read the content

Rate Limiting and Usage Control

  • Combined identity tracking via Device ID, Cookie ID, and IP
  • For Guest Users: Once they reach 5000 tokens, CAPTCHA is returned and before email verification, the tokens are extended till 10,000
  • For Logged Users: After Email Verification step, the tokens are extended till 50,000, once the user hits that limit, the user will have to wait for 24 hours to use the agent

TECHNICAL ARCHITECTURE

Technologies Used

ComponentTechnology
AI Agent RuntimeAWS Bedrock AgentCore
Agent FrameworkStrands Agents SDK (Python)
Large Language ModelClaude Sonnet 4.5 and Nova Micro
Conversation MemoryAWS Bedrock AgentCore Memory
Web ScrapingPython (BeautifulSoup)
Chat InterfaceGradio (Python)
Embedding PlatformAFIVE (Azure)
Secrets ManagementAWS Secrets Manager
Network SecurityAWS VPC
MonitoringAmazon CloudWatch
Access ControlAWS IAM, JWT Tokens

Service Implemented

  • AWS Bedrock AgentCore Runtime and Memory
  • Claude Sonnet 4.5 and Nova Micro via Amazon Bedrock
  • Strands Agents SDK with A2A protocol support
  • Redis content caching including TTL
  • AWS Secrets Manager for all configuration and credentials
  • AWS VPC with private subnets and security groups
  • Amazon CloudWatch for logging, tracing and monitoring
  • Gradio chat interface

Security & Governance

  • Access controlled IAM role, only authorised systems can invoke the agent
  • JWT tokens used between AFIVE and the agent
  • Agent reads only the public website content
  • Each user session and conversation history fully isolated
  • All credentials stored in AWS Secrets Manager
  • Amazon Bedrock Guardrails to prevent inappropriate responses
  • Rate limiting and token budget limits to prevent cost overrun

BENEFITS

Operational Benefits

  • Reduced support team workload for common and repetitive queries
  • Consistent and accurate responses sourced from live website content
  • Full source URL citation on query
  • Scalable to any public website with configuration changes

Business Benefits

  • Enhanced user satisfaction through accurate self service
  • Scalable support operations across departments and websites
  • Enterprise grade security and governance
  • Reusable solution deployable across multiple client websites

FUTURE STEPS

URL Caching

  • If multiple users scrape same URL, it should return the cached result
  • Vectorisation
  • Planning to implement a separate DI agent, were the agent reads the doc content
  • Planning to create a Multi Agent Orchestration: Webscrape Agent, DI Agent

Snapshot

Share On:

Apply for the Job

Apply Now

×
You are about to be redirected to QTechEd – the Learning & Development division of Adactin- offering industry-aligned IT training programs. Click “QTechEd” to continue to the training platform

QTechEd – The Learning & Development Division
Powered by Adactin

QTechEd, the dedicated Learning & Development arm of Adactin, delivers high- quality IT training programs backed by industry expertise and real-world experience. Headquartered in Australia, we continue to expand our global presence across New Zealand, Singapore, and broader Asia. Over the years, we have successfully upskilled a diverse range of IT and non-IT professionals, while partnering with leading corporate organizations across multiple sectors.
Our flagship training offerings include:
These programs remain among the most in-demand, equipping professionals with the skills needed to thrive in today’s dynamic technology landscape.