{"product_id":"ar-invoice-collection-workflow-webhooks-http-api-ai","title":"AR Invoice Collection Workflow: Webhooks, HTTP API \u0026 AI","description":"\u003ch3\u003eTurn overdue invoice collection requests into an AI-assisted action plan—automatically.\u003c\/h3\u003e\n\u003cp\u003eThis n8n AR Invoice Collection Workflow receives an overdue-invoice request via webhook, enriches it with customer payment history, uses an external AI endpoint to rank personalized collection actions, executes the top recommendation, logs the activity to your AR\/CRM system, and returns a complete collection plan with an audit trail.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives requests via POST webhook\u003c\/strong\u003e at the configured endpoint path \u003cstrong\u003e\/ar-collection\u003c\/strong\u003e, including invoice, customer, and overdue details.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates required fields\u003c\/strong\u003e, assigns a `severity tier` based on \u003cem\u003edays overdue\u003c\/em\u003e and \u003cem\u003ebalance\u003c\/em\u003e, and builds a customer context payload.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFetches customer history\u003c\/strong\u003e by calling an external \u003cstrong\u003eHTTP endpoint\u003c\/strong\u003e to retrieve payment history and risk indicators.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates ranked actions with AI\u003c\/strong\u003e by sending the enriched context to an external \u003cstrong\u003eAI HTTP endpoint\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eExecutes the primary recommended action\u003c\/strong\u003e by calling an external \u003cstrong\u003eHTTP endpoint\u003c\/strong\u003e (e.g., sending an email, creating a task, or initiating a call—whatever your endpoint implements).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogs collection activity\u003c\/strong\u003e by calling an external \u003cstrong\u003eAR\/CRM HTTP endpoint\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReturns a full collection plan\u003c\/strong\u003e in the webhook response, including AI recommendations, execution results, status codes, and next steps.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eAR teams need faster responses to overdue invoices with consistent, auditable next steps.\u003c\/li\u003e\n  \u003cli\u003eSaaS operators want to route overdue collection requests from internal tools into a controlled workflow.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers want a reusable webhook-driven pattern for AI-ranked customer outreach and AR\/CRM logging.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes used:\u003c\/strong\u003e \u003ccode\u003ewebhook\u003c\/code\u003e, \u003ccode\u003ecode\u003c\/code\u003e, \u003ccode\u003ehttp request\u003c\/code\u003e, \u003ccode\u003ewait\u003c\/code\u003e, \u003ccode\u003erespond to webhook\u003c\/code\u003e, plus \u003ccode\u003esticky note\u003c\/code\u003e for workflow documentation.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eExternal HTTP integrations:\u003c\/strong\u003e customer-history\/risk lookup, AI action-generation endpoint, action-execution endpoint, and AR\/CRM logging endpoint (replace placeholder URLs such as \u003cstrong\u003ehttpbin.org\u003c\/strong\u003e).\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46232400560307,"sku":"N8N-21060","price":66.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/Lg0T8PSCQlJgHur_ly-qC_9qRhzFGH.png?v=1792141758","url":"https:\/\/buyflowscripts.com\/products\/ar-invoice-collection-workflow-webhooks-http-api-ai","provider":"N8N Commerce","version":"1.0","type":"link"}