This solution provides an automated way to analyze customer feedback collected through Google Forms, analyze it using GPT-4, and then send the results to Slack. Additionally, it updates the Google Sheet that collects the survey responses with tags based on the analysis.
- Automated analysis of customer satisfaction survey
- Slack notification with parsed analysis
- Spreadsheet update with categorized tags
- Google App Script for automation
- GPT-4 for natural language processing
- Slack for notifications
OPENAI_API_KEY
: Your OpenAI API key stored in Google Script PropertiesSLACK_WEBHOOK_URL
: Your Slack Webhook URL stored in Google Script Properties
- Open your Google Sheet for collecting survey responses.
- Go to Extensions -> App Script to open the script editor.
- Copy the entire code into the editor.
- Save the script.
- Go to File -> Project Properties -> Script Properties.
- Add a new property
OPENAI_API_KEY
and set it as your OpenAI API key. - Add another property
SLACK_WEBHOOK_URL
and set it as your Slack Webhook URL.
- Create a new incoming Webhook in your Slack workspace and get the Webhook URL.
- Update the
SLACK_WEBHOOK_URL
in the Google Script Properties.
- In the App Script editor, go to Triggers.
- Add a new trigger for the
onFormSubmit
function. - Choose the event type as 'On form submit'.
Once set up, the script will automatically trigger every time a form response is submitted. It will analyze the feedback, send a summary to Slack, and update the Google Sheet with tags like "Positive 😃", "Negative 😞", etc.
- GPT-4 by OpenAI for the powerful natural language processing
- Slack for enabling real-time notifications
- Google App Script for automation and Google Sheets API