Marketing and design teams often find themselves trapped in a tedious cycle of manual surveillance, opening dozens of browser tabs to track competitor product shifts and emerging content trends. For those who attempt to automate this, the frustration usually stems from the fragility of rule-based scrapers. These legacy tools are tightly coupled to the specific HTML structure of a page, meaning a simple site redesign or a migration to a JavaScript-heavy frontend framework can instantly break an entire data pipeline. The industry has long struggled with the trade-off between the stability of static scraping and the resource-heavy nature of full browser rendering.

The Architecture of Managed Dynamic Collection

Amazon Bedrock AgentCore Browser addresses this instability by providing a fully managed browser service capable of reliably rendering JavaScript-heavy pages. The technical execution begins with an AWS Lambda function that initiates a remote browser session through AgentCore, establishing a connection via the Chrome DevTools Protocol (CDP). To manipulate the browser, the system employs the Playwright library over a WebSocket connection. This architecture is a critical departure from traditional serverless scraping; by offloading the browser execution to AgentCore, the system eliminates the common out-of-memory errors that occur when attempting to run a headless browser directly within the constrained environment of a Lambda function.

Once the remote browser is active, it waits for dynamic elements to fully load before rendering the complete page, capturing screenshots, and downloading images to ensure data integrity. The resulting output is stored in Amazon S3 using a structured format. Each collection event generates a set consisting of the downloaded image files and a `metadata.json` file containing the URL, page title, timestamp, and asset references. This standardization ensures that downstream processing pipelines can access data through consistent paths, regardless of the scale of the collection effort.

To maintain a continuous flow of data, the system utilizes an event-driven pipeline powered by Amazon EventBridge and Amazon SQS. EventBridge triggers the collection Lambda every 15 minutes to monitor specific RSS feeds for new articles. To prevent redundant processing and waste, the Lambda function converts the article URLs into hash IDs and compares them against existing IDs stored in Amazon S3. Only new content proceeds through the pipeline, which significantly reduces storage overhead and minimizes the token costs associated with subsequent AI analysis.

When a `metadata.json` file is uploaded to S3, an S3 event immediately publishes a message to an Amazon SQS queue. This queue acts as a critical buffer, physically decoupling the content collection phase from the AI analysis phase. This separation allows each component to scale independently; while the collection functions operate in parallel across dozens of RSS feeds, the analysis tasks are processed steadily according to the queue's order. To handle edge cases and failures, the system implements a Dead-letter queue (DLQ). Messages that fail after a designated number of retries are moved to the DLQ, allowing administrators to analyze the failure root cause and trigger manual reprocessing. For security, all components reside within an Amazon VPC, blocking external access and optimizing internal communication paths.

From Raw HTML to Semantic Intelligence

The transition from raw data to actionable insight happens in the analysis Lambda, which retrieves HTML from S3 after receiving an SQS message. To optimize token consumption and avoid model context limits, the system applies a size-based preprocessing logic. For large HTML files exceeding 1MB, the system uses the `html-to-text` library to strip all formatting and convert the content into plain text. For files under 1MB, the system employs Mozilla's `Readability` library, which intelligently removes noise such as advertisements, navigation menus, and footers, extracting only the core body text and essential images.

This refined text is then passed to Amazon Bedrock, where the actual insight extraction occurs. Bedrock analyzes the content to generate concise summaries, identify recurring themes, and extract key entities such as people, organizations, and locations. Because the preprocessing stage has already removed the clutter of HTML tags, the AI model can focus exclusively on the semantic meaning of the text, which increases summary accuracy and lowers the cost per request. To mitigate the security risks inherent in feeding third-party web content into a Large Language Model, the system integrates Amazon Bedrock Guardrails. This security layer filters inappropriate content and enforces organizational policies without requiring constant modifications to the underlying prompts, giving operators centralized control over AI outputs.

The final stage of the pipeline transforms these insights into a searchable knowledge base using Amazon OpenSearch Serverless. The system implements a hybrid search architecture by storing the original content, AI-extracted metadata, and Bedrock-generated vector embeddings within a single index. This index combines an inverted index for exact keyword matching with a vector index for semantic similarity. This dual approach allows users to perform complex queries that blend specific terminology with conceptual intent.

Semantic search functions by calculating the coordinate distance between vector embeddings generated by Amazon Bedrock. For example, if a user searches for emerging design trends, the system identifies vectors closest to the semantic meaning of that phrase, even if the exact words emerging design trends never appear in the source document. This solves the common problem of search omission caused by the gap between a user's query phrasing and the author's original wording. By adjusting the weights between keyword matching and semantic similarity, developers can fine-tune the search experience to maximize the discoverability of the extracted insights.

To make this data accessible to the wider organization, the system utilizes a React-based frontend hosted on Amazon ECS with AWS Fargate, secured by Amazon Cognito. Fargate ensures that the interface remains stable by flexibly allocating container resources based on traffic fluctuations, while Amazon CloudWatch provides real-time visibility into all API calls and system events. To extend the system's utility beyond a simple dashboard, an MCP (Model Context Protocol) server is deployed on ECS Fargate and exposed via Amazon CloudFront.

MCP is an open standard that defines how AI assistants connect to external data sources and invoke tools through a unified interface. By implementing MCP, the organization ensures that various AI agents can query the insight database directly without the need for custom API development for every new tool. The entire infrastructure is governed by the principle of least privilege via AWS IAM, ensuring each service has only the permissions necessary for its specific task. By combining an event-driven pipeline with a standardized protocol like MCP, the system reduces the coupling between the data store and the AI agents, creating a scalable framework for automated web intelligence.