{"product_id":"compute-verified-campaign-stats-with-bedrock-agentcore-slack","title":"Compute Verified Campaign Stats with Bedrock AgentCore \u0026 Slack","description":"\u003ch3\u003eCompute \u0026amp; Verify Campaign Statistics—then publish them to Slack with Bedrock AgentCore\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow accepts a webhook payload of campaign numbers, computes descriptive statistics using \u003cstrong\u003eAmazon Bedrock AgentCore\u003c\/strong\u003e (via \u003cstrong\u003eCode Interpreter\u003c\/strong\u003e), verifies the result inside n8n, and posts a clean, formatted summary to \u003cstrong\u003eSlack\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives input via HTTP webhook:\u003c\/strong\u003e An HTTP POST request sends a JSON body containing a required \u003ccode\u003evalues\u003c\/code\u003e array of numeric campaign values, and an optional \u003ccode\u003elabel\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNormalizes and sets defaults:\u003c\/strong\u003e The workflow prepares the agent name, Slack channel, label, and the values list for downstream steps.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eComputes statistics in Bedrock AgentCore:\u003c\/strong\u003e It sends the \u003ccode\u003elabel\u003c\/code\u003e and \u003ccode\u003evalues\u003c\/code\u003e to an Amazon Bedrock AgentCore agent configured to run \u003cstrong\u003ePython\u003c\/strong\u003e using the \u003cstrong\u003eCode Interpreter\u003c\/strong\u003e tool, returning strict JSON statistics.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eVerifies results in n8n:\u003c\/strong\u003e n8n parses the agent response, recomputes the \u003cstrong\u003emean\u003c\/strong\u003e and \u003cstrong\u003ecount\u003c\/strong\u003e locally, and flags output as \u003cstrong\u003everified\u003c\/strong\u003e only if it matches within a small tolerance.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePosts to Slack:\u003c\/strong\u003e The workflow publishes the verified (or unverified) summary to the configured Slack channel.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSaaS reporting checks:\u003c\/strong\u003e Automatically validate computed campaign metrics before sharing them with teams.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOps dashboards:\u003c\/strong\u003e Push mean\/count-style descriptive stats to Slack for quick, consistent monitoring.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWebhook-driven analytics:\u003c\/strong\u003e Trigger stat computation from other systems by sending \u003ccode\u003e{\"values\":[...],\"label\":\"...\"}\u003c\/code\u003e to the workflow webhook.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes \/ tools:\u003c\/strong\u003e \u003ccode\u003ewebhook\u003c\/code\u003e, \u003ccode\u003eset\u003c\/code\u003e, \u003ccode\u003ecode\u003c\/code\u003e, \u003ccode\u003eslack\u003c\/code\u003e, \u003ccode\u003esticky note\u003c\/code\u003e, and the \u003cstrong\u003eawsn8n-nodes-agentcoreagent\u003c\/strong\u003e core harness.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations:\u003c\/strong\u003e Amazon Bedrock AgentCore (Code Interpreter with Python) and Slack.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eActivation:\u003c\/strong\u003e Configure Bedrock AgentCore and Slack credentials, copy the webhook URL, and POST JSON payloads to run the workflow.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45761010729139,"sku":"N8N-17817","price":45.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/a0mh30GOrtYIOmUNF-QCD_IRIIAnpr.png?v=1785921283","url":"https:\/\/buyflowscripts.com\/products\/compute-verified-campaign-stats-with-bedrock-agentcore-slack","provider":"N8N Commerce","version":"1.0","type":"link"}