[{"data":1,"prerenderedAt":96},["ShallowReactive",2],{"pattern-apigw-lambda-websearch-bedrock-typescript-cdk":3,"pattern-group-apigw-lambda-websearch-bedrock-typescript-cdk":70},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":22,"language":29,"level":30,"meta":31,"patternArch":32,"patternGroup":56,"patternGroupLabel":6,"resources":57,"stem":65,"testing":66,"videoId":6,"__hash__":69},"patterns\u002Fpatterns\u002Fapigw-lambda-websearch-bedrock-typescript-cdk.json","Grounded AI answers with Web Search Tool and Amazon Bedrock",null,{"text":8},[9],"\u003Ccode>npx cdk destroy\u003C\u002Fcode>",[11],"content\u002Fcontributors\u002Fnithin-chandran-r.json",{"text":13},[14],"\u003Ccode>npx cdk deploy\u003C\u002Fcode>","Ground AI responses in live web data using the Web Search Tool on Amazon Bedrock AgentCore Gateway for model-agnostic cited answers","json","AWS CDK",{"template":19},{"patternPath":20,"templateFile":21},"apigw-lambda-websearch-bedrock\u002Ftypescript\u002Fcdk","lib\u002Fapigw-lambda-websearch-bedrock-stack.ts",{"headline":23,"text":24},"How it works",[25,26,27,28],"A user sends a question to the Amazon API Gateway REST API endpoint.","The AWS Lambda function searches the live web via the Web Search Tool on Amazon Bedrock AgentCore Gateway using the MCP protocol with SigV4 authentication.","Web search results (titles, URLs, snippets) are formatted as context and sent to Amazon Bedrock (Claude) for inference.","Amazon Bedrock synthesizes a grounded answer with numbered citation references, returned to the user with source URLs.","TypeScript","300",{},{"icon1":33,"icon2":38,"icon3":41,"icon4":46,"line1":49,"line2":52,"line3":54},{"x":34,"y":35,"service":36,"label":37},15,50,"apigw","Amazon API Gateway",{"x":35,"y":35,"service":39,"label":40},"lambda-event-functions","AWS Lambda",{"x":42,"y":43,"service":44,"label":45},80,30,"bedrock","Web Search Tool",{"x":42,"y":47,"service":44,"label":48},70,"Amazon Bedrock",{"from":50,"to":51},"icon1","icon2",{"from":51,"to":53},"icon3",{"from":51,"to":55},"icon4","apigw-lambda-websearch-bedrock",{"bullets":58},[59,62],{"text":60,"link":61},"Web Search Tool documentation","https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock-agentcore\u002Flatest\u002Fdevguide\u002Fgateway-target-connector-web-search-tool.html",{"text":63,"link":64},"Amazon Bedrock InvokeModel API","https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock\u002Flatest\u002FAPIReference\u002FAPI_runtime_InvokeModel.html","patterns\u002Fapigw-lambda-websearch-bedrock-typescript-cdk",{"text":67},[68],"See the GitHub repo for detailed testing instructions.","hC4BeEtKoSs9hRlVVzhzVOzN_h8cjSyjqHxxjuWouG0",[71],{"id":4,"title":5,"architectureURL":6,"cleanup":72,"contributors":74,"deploy":75,"description":15,"extension":16,"framework":17,"gitHub":77,"highlight":6,"introBox":79,"language":29,"level":30,"meta":81,"patternArch":82,"patternGroup":56,"patternGroupLabel":6,"resources":90,"stem":65,"testing":94,"videoId":6,"__hash__":69},{"text":73},[9],[11],{"text":76},[14],{"template":78},{"patternPath":20,"templateFile":21},{"headline":23,"text":80},[25,26,27,28],{},{"icon1":83,"icon2":84,"icon3":85,"icon4":86,"line1":87,"line2":88,"line3":89},{"x":34,"y":35,"service":36,"label":37},{"x":35,"y":35,"service":39,"label":40},{"x":42,"y":43,"service":44,"label":45},{"x":42,"y":47,"service":44,"label":48},{"from":50,"to":51},{"from":51,"to":53},{"from":51,"to":55},{"bullets":91},[92,93],{"text":60,"link":61},{"text":63,"link":64},{"text":95},[68],1793356466079]