Revscale AI Messaging Template Generator: Webhook-Triggered 3-Type Prompt Generation → Revscale API Delivery
Problem:
Revscale's platform required dynamically generated messaging templates across three distinct use cases, web pixel tracking messages, email campaign copy, and global template content, each requiring different AI prompting logic and delivery to separate API endpoints, with no automated system to generate and route them on demand.
Solution:
Built a webhook-triggered n8n template generation system that receives a request and routes it through a Switch node into three parallel AI generation branches, Branch 0 passes the payload to a Web Pixel OpenAI Prompt Message Model and delivers the output via HTTP POST to the Revscale web pixel API endpoint; Branch 1 passes to an Email Campaign OpenAI Prompt Message Model and delivers to the email campaign API endpoint; Branch 2 passes to a Global Templates OpenAI Prompt Message Model and delivers to the global templates API endpoint, all three branches operate independently and respond to their respective endpoints simultaneously.
Result:
Delivered a fully automated messaging template generation system that produces three distinct AI-generated content types from a single webhook call and delivers each to the correct Revscale API endpoint, enabling the platform to generate and inject contextually appropriate messaging content on demand across all three template categories without any manual prompt writing or API management.
