Use this powerful n8n workflow to manage event registrations via a custom form and run an interactive, privacy-protected giveaway app using PostgreSQL data. Deploy quickly using our n8n templates.
Download this n8n workflow template and start using it instantly.
This comprehensive n8n workflow solves the dual challenge of event management: capturing participant data reliably and then providing a secure, engaging tool for selecting prize winners live. The entire solution is hosted within n8n, eliminating the need for external form builders or complex giveaway software.
It leverages an n8n Form Trigger to collect detailed participant information, ensuring data integrity by saving it instantly via an 'upsert' operation in a PostgreSQL database (e.g., Neon). Crucially, a separate endpoint, triggered by an n8n Webhook, fetches this data, processes it—including redacting sensitive information like WhatsApp numbers using a custom n8n node—and renders a fully functional HTML/JavaScript giveaway application. This is an excellent example of building a sophisticated, front-end-enabled application using only native n8n features.
This n8n workflow operates in two distinct, yet interconnected, sequences:
formTrigger). This form collects essential details like name, email, WhatsApp, and social media usernames.upsert operation on the n8nmeetupparticipants table, ensuring that if a participant submits the form multiple times (identified by a generated unique ID based on Event and WhatsApp), their record is updated, preventing duplicates.select operation queries the database, retrieving all registered participants for the specified event.Format participant list n8n node uses JavaScript to loop through the participants. It redacts the middle section of the WhatsApp number (e.g., 1234****5678) for display privacy and formats the output into a simple list of names and redacted contact info, ready for the front-end script.To deploy this powerful n8n workflow and start managing your event registrations, follow these steps:
Neon N8N Community Indonesia (or update the PostgreSQL n8n node connections to use your chosen credential).n8nmeetupparticipants in your PostgreSQL database with columns matching those expected by the 'Mapping form to database' n8n node (e.g., id, nama_lengkap, whatsapp, email, event, etc.).Participant Form n8n trigger for registration, and the URL generated by the Giveaway App Webhook n8n trigger to launch the winner selection tool. Participant Form (n8n trigger): Serves as the primary entry point for attendees, collecting necessary registration data using a built-in, highly customizable n8n Form interface with custom CSS styling.
Mapping form to database (Set node): Transforms the human-readable form field names (e.g., 'Nama Lengkap') into database column keys (e.g., nama_lengkap), ensuring data consistency before insertion.
Save Participant to Database (PostgreSQL n8n node): Manages persistence using an 'Upsert' operation. It ensures the registration is recorded, or updated if the user re-registers, preventing duplicate entries in the database.
Giveaway App (Webhook n8n trigger): Creates a dedicated public API path (/giveaway) that, when accessed, initiates the process of generating the front-end application.
Get all participants (PostgreSQL n8n node): Executes a targeted SQL SELECT query to retrieve only the participants relevant to the event ID defined in the workflow parameters.
Format participant list (Code n8n node): A critical n8n node that runs custom JavaScript logic. Its main function is data privacy, redacting sensitive contact numbers (WhatsApp) before passing the list to the final application front-end.
Automate meeting scheduling, availability checking, and email confirmations using this powerful n8n workflow. Deploy an AI agent integrating Telegram, Google Calendar, and Gmail.

Use this powerful n8n workflow to automate medical triage using OpenAI's GPT-4o. This n8n template processes patient intake forms, performs urgency assessment, notifies emergency teams via Slack and Gmail, and logs all data to Google Sheets. Learn how to configure each n8n node.

Build a secure, privacy-first AI medical assistant using this powerful n8n workflow. It uses GPT-4 for general guidance and features critical emergency routing. Install this n8n template easily.

Automate Meraki network monitoring using this efficient n8n workflow. Detect critical uplink packet loss or latency issues, calculate 5-minute averages, and send deduplicated alerts to Microsoft Teams. Download this powerful n8n template for reliable network management.

Turning Tech & AI into Real Business Results I’ve been in software development for over 15 years, helping businesses solve real problems with smart and practical solutions. These days, I focus on automation using tools like n8n, along with custom software and AI. I enjoy making tech work for people in a way that’s clear, useful, and effective.







































