Quick overview
This workflow collects up to five FAQ questions and answers from an n8n Form, converts each entry to an MP3 using OpenAI text-to-speech, uploads the files to Google Drive, logs links in Google Sheets, and emails a summary with listen and download links via Gmail.
How it works
- Receives an n8n Form submission containing the requester’s email, a FAQ category, and up to five question-and-answer pairs.
- Splits the submitted FAQ pairs into individual items, generating a TTS script and a safe MP3 filename for each valid question and answer.
- Calls the OpenAI Audio Speech API (tts-1) to generate an MP3 file for each FAQ script.
- Uploads each generated MP3 to a specified Google Drive folder.
- Builds Google Drive view and direct-download URLs for each uploaded file and appends the FAQ details and links to a Google Sheets tab.
- Aggregates all processed FAQs into a single HTML summary and sends it to the submitter via Gmail with listen and download links.
Setup
- Add an OpenAI API credential for the HTTP request to the OpenAI Audio Speech endpoint.
- Create (or choose) a Google Drive folder for the audio files, connect Google Drive OAuth2, and replace
YOUR_AUDIO_FOLDER_ID with the target folder ID.
- Create a Google Sheets document with a sheet/tab named
FAQs, connect Google Sheets OAuth2, and replace YOUR_FAQ_LOG_SHEET_ID with your spreadsheet ID.
- Connect Gmail OAuth2 and ensure the account is allowed to send emails to the recipient address collected in the form.
- Activate the workflow and use the Form URL to submit FAQs for processing.