In today's fast-paced digital world, collecting customer feedback efficiently is crucial for improving products and services. Automating this process saves time and ensures that feedback reaches your team promptly. This guide walks you through setting up an automation to transfer customer feedback from JotForm to Slack using n8n, an open-source workflow automation tool.
Prerequisites
- A JotForm account with a feedback form created
- A Slack workspace with permissions to create incoming webhooks
- An n8n instance running locally or on a server
- Basic knowledge of n8n workflow creation
Step 1: Create Your JotForm Feedback Form
Log into your JotForm account and create a new form tailored for customer feedback. Include fields such as Name, Email, Feedback, and Rating. Once completed, publish the form and copy its URL for testing purposes.
Step 2: Set Up Slack Incoming Webhook
Navigate to your Slack workspace and go to Apps & Integrations. Search for Incoming Webhooks and add it to your workspace. Configure a new webhook, select the channel where feedback should be posted, and copy the webhook URL. This URL will be used in n8n to send messages to Slack.
Step 3: Configure JotForm Webhook
In JotForm, go to the form you've created and access the Settings. Under Integrations, select Webhooks. Add a new webhook and enter your n8n webhook URL (which will be generated in the next step). Save your changes.
Step 4: Create n8n Workflow
Open your n8n editor and create a new workflow. Follow these steps to build the automation:
Step 4.1: Add Webhook Trigger
Drag the Webhook node into the workspace. Set the HTTP Method to POST. Copy the generated webhook URL and paste it into JotForm's webhook settings. Save the node.
Step 4.2: Parse Incoming Data
Add a Set node to structure the data. Map the fields from the webhook payload, such as name, email, feedback, and rating, to variables for use in the message.
Step 4.3: Send Message to Slack
Insert an HTTP Request node. Configure it as follows:
- HTTP Method: POST
- URL: Your Slack webhook URL
- Body Content Type: JSON
- Body:
{"text": "New Customer Feedback:\nName: {{$json["name"]}}\nEmail: {{$json["email"]}}\nFeedback: {{$json["feedback"]}}\nRating: {{$json["rating"]}"}
Step 5: Activate and Test Your Workflow
Save your n8n workflow and activate it. Return to your JotForm, submit a test feedback, and verify that the message appears in your designated Slack channel. Adjust the message formatting as needed for clarity.
Conclusion
By following these steps, you automate the collection and notification of customer feedback, streamlining your workflow and ensuring timely responses. This setup can be customized further to include additional actions or integrations, enhancing your customer engagement process.