Community node for integrating Sweeppea sweepstakes platform with n8n workflows.
Sweeppea is a sweepstakes management platform that helps businesses create and manage promotional campaigns, contests, and giveaways.
n8n is a fair-code licensed workflow automation platform.
Follow the installation guide in the n8n community nodes documentation.
- Get Form Fields - Retrieve the dynamic entry form fields for a specific sweepstake (useful for building chatbots or dynamic forms)
- Create - Register a new participant in a sweepstake with dynamic field support
You'll need to configure your Sweeppea API credentials:
- API Token/Key - Your Sweeppea API authentication token
- Environment - Select your target environment:
- Production (https://api-v3.sweeppea.com)
- Development (for local testing with custom API URL)
- Log in to your Sweeppea Dashboard
- Navigate to the API Keys tab
- Generate or copy your API token
- Use this token in the n8n credential configuration
- Minimum n8n version: 0.199.0
- Tested with n8n version: 1.0.0+
The Sweeppea node supports fully dynamic form fields. Each sweepstake can have different fields configured in the Sweeppea platform, and the node automatically adapts to these fields.
Example workflow:
- Use Get Form Fields operation to fetch the required fields for a sweepstake
- Build a dynamic form or chatbot that collects the required data
- Use Create operation to register the participant with the collected data
This node works seamlessly with AI agents (OpenAI, Anthropic, etc.) to create conversational participant registration flows:
- Fetch sweepstake form fields
- Build dynamic system prompt with required fields
- AI agent collects data conversationally
- Transform AI response to API format
- Create participant automatically
When submitting participant data, field names should use underscores instead of spaces:
- "First Name" →
First_Name - "How did you find us?" →
How_did_you_find_us?
The node expects data in this format:
{
"KeyEmail": "user@example.com",
"KeyPhoneNumber": "1234567890",
"BonusEntries": 0,
"Fields": {
"First_Name": "John",
"Last_Name": "Doe",
"Email": "user@example.com",
"Mobile_Number": "1234567890",
"Custom_Field": "value"
}
}BEFORE USING THIS NODE, you MUST configure error handling:
- Click on the Sweeppea node
- Go to Settings tab (not Parameters)
- Under On Error, change from "Stop Workflow" to Continue
This configuration is MANDATORY for the node to work correctly. Without it, duplicate participants or validation errors will stop your entire workflow instead of being handled gracefully.
Why is this required?
- The node is designed to pass error responses (like duplicate entries) as data to the next node
- This allows you to handle errors in your workflow logic (show messages, log, retry, etc.)
- Without "Continue" enabled, the workflow will crash on the first error
This package includes ready-to-import example workflows in the /examples folder:
File: sweeppea-create-participant.json
A straightforward workflow that collects participant data through an AI chatbot:
- AI Agent asks for First Name, Last Name, Email, and Mobile Number conversationally
- Transform node converts the collected data to Sweeppea API format
- Creates participant in the sweepstake
How to use:
- Import the workflow JSON file into your n8n instance
- Configure your Sweeppea credentials
- Replace
YOUR_SWEEPSTAKES_TOKEN_HEREwith your actual sweepstakes token - Activate the workflow
File: sweeppea-create-participant-dynamic-form.json
An advanced workflow that automatically adapts to any sweepstake configuration:
- Fetches the sweepstake form fields dynamically from the API
- Builds a custom AI system prompt based on the field configuration
- AI Agent collects all fields conversationally (even optional ones)
- Transform node dynamically maps collected data to API format
- Creates participant with all custom fields
How to use:
- Import the workflow JSON file into your n8n instance
- Configure your Sweeppea credentials
- Replace
YOUR_SWEEPSTAKES_TOKEN_HEREwith your actual sweepstakes token (appears in 2 nodes) - Activate the workflow
Note: The dynamic workflow automatically adapts to any sweepstake configuration, making it ideal for use across multiple campaigns with different field requirements.
Initial Release
- Dynamic field loading based on sweepstake configuration (API v3)
- Support for Get Form Fields operation
- Support for Create Participant operation
- Multi-environment support (production, development)
- Automatic field validation
- Support for multiple field types:
- Text fields
- Phone numbers (US format)
- Dates/Birthdate
- Numbers
- Select lists
- AI chatbot integration support
© 2025 Sweeppea Development Lab


