Ihre persönlichen Supplement-Empfehlungen
“`
6. **Publish** the page
—
## **6.5: Update WPForms Settings**
1. Go to **WPForms → All Forms**
2. Edit your form
3. Click **Settings** → **Confirmations**
4. **Type**: Select “Show Message”
5. **Message**:
“`
Einen Moment bitte… Wir erstellen Ihre persönlichen Empfehlungen…
“`
6. **Save**
**IMPORTANT**: Remove any redirect settings in WPForms. Make.com will handle the redirect.
—
## **COMPLETE MAKE.COM SCENARIO STRUCTURE**
Your final scenario should look like this:
“`
1. Webhooks (Custom Webhook)
↓
2. OpenAI (Create Chat Completion)
↓
3. JSON (Parse JSON)
↓
4. Webhooks (Webhook Response – with redirect)
“`
—
## **TESTING CHECKLIST**
### **Test 1: Webhook Connection**
1. Make.com scenario: Click “Run once”
2. Fill out your WPForms
3. Submit
4. Check Make.com – did it receive data? (Green checkmark on Webhook module)
✅ **If YES**: Continue
❌ **If NO**:
– Check webhook URL in WPForms is exactly the one from Make.com
– No extra spaces
– Form is published
### **Test 2: OpenAI Response**
1. After submitting form, check OpenAI module in Make.com
2. Click on it – do you see JSON output?
3. Should look like: `{“product1_name”:”Vitamin D3″…}`
✅ **If YES**: Continue
❌ **If NO**:
– Check OpenAI API key is correct
– Check you have credits ($5+ in OpenAI account)
– Check prompt is exactly as I wrote (especially the JSON format instruction)
### **Test 3: Redirect**
1. Submit form
2. Do you get redirected to `/empfehlungen/` page?
3. Does the URL have parameters like `?p1=Vitamin%20D3&r1=…`?
✅ **If YES**: Continue
❌ **If NO**:
– Check Webhook Response module is configured
– Check Status is `302`
– Check Location header is set
### **Test 4: Display**
1. On the empfehlungen page, do you see 3 product recommendations?
2. Are the product names and reasons showing?
3. Do the links work?
✅ **If YES**: YOU’RE DONE! 🎉
❌ **If NO**:
– Open browser console (F12) – any JavaScript errors?
– Check if URL parameters are present
– View page source – is the JavaScript code there?
—
## **COMMON ERRORS & FIXES**
**Error: “Webhook timed out”**
– OpenAI is taking too long
– Reduce max_tokens to 300
– Or use gpt-3.5-turbo-16k
**Error: “Invalid JSON”**
– OpenAI didn’t return pure JSON
– Add to prompt: “CRITICAL: Respond with ONLY JSON. No explanations, no markdown, no code blocks. Just raw JSON.”
**Error: “Page shows no recommendations”**
– Check browser console (F12)
– URL parameters missing?
– Check Webhook Response module sends correct URL
**Error: “Can’t connect to OpenAI”**
– API key wrong
– No credits in account
– Copy key again (no spaces)
—
## **WHAT I NEED FROM YOU TO CUSTOMIZE**
To make this perfect for your site, send me:
1. **WPForms field names**: What questions do you ask? (Screenshot is fine)
2. **Your actual products**:
– Name
– URL on your site
– What health goal it helps with
Example:
“`
1. Vitamin D3 + K2
https://vita-bayern.de/produkt/vitamin-d3-k2
Helps: Immunity, bone health, mood
2. Omega-3 Premium
omega 3
Helps: Heart health, brain function