n8n

How to Automate Gmail Pinterest Trends Reporting?

Get a weekly Pinterest trends report sent to your inbox. The flow collects fresh pins, stores the data in Airtable, studies the results with AI, and emails a short summary with new post ideas. It fits teams that plan content and want quick insight without manual work.

Every week at 8 am a schedule kicks off. The flow calls the Pinterest API to pull pins. A code step tags the data as Organic and formats fields like link, title, description, and created date. Records are upserted into an Airtable table, so duplicates are not added. An AI agent reads the table through the Airtable tool and an OpenAI model to spot trends and list pin ideas that match your audience. A summary model condenses the findings into clear notes. Gmail then sends the insights with the subject Pinterest Trends and Suggestions. You can change the run time and the recipient at any time.

Setup needs a Pinterest access token, an Airtable base and table, an OpenAI key, and a Gmail account. Map fields so pin_id is the unique value and add the Authorization header for the Pinterest call. Expect reporting time to drop from hours to minutes and get steady content ideas you can act on. This is helpful for social media managers, small brands, and agencies that report on Pinterest.

What are the key features?

  • Weekly schedule runs at 8 am to start the data pull
  • HTTP request fetches pins from the Pinterest API
  • Code step tags each record as Organic and formats fields
  • Airtable upsert writes link, title, type, pin_id, description, and created date
  • AI agent reads the Airtable table and finds trends and new pin ideas
  • Summary model creates a short, clear briefing for managers
  • Gmail sends the report with a preset subject and message body
  • Configurable run time and recipient to fit team schedules

What are the benefits?

  • Reduce weekly reporting work from 2 hours to 10 minutes
  • Automate 100 percent of pin collection and email delivery
  • Improve data quality by removing copy paste errors
  • Unify Pinterest and Airtable data in one place
  • Scale to handle many more pins without extra effort

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Pinterest, Airtable, Gmail and OpenAI. See the Tools Required section above for links to create accounts with these services.
  3. In the n8n credentials manager, connect Airtable: create a new Airtable Personal Access Token on the Airtable website, then create a new credential in n8n and paste the token. Name the credential clearly, such as Airtable Pinterest.
  4. Open the Airtable nodes and select your Airtable credential. Pick your base and table or keep the provided base and table. Confirm the upsert operation and set the unique field to pin_id.
  5. Open the HTTP Request node for Pinterest. Add the Authorization header with the value Bearer YOUR_PINTEREST_TOKEN. Create or fetch this token from the Pinterest developer portal. Run the node once to confirm you get pin data.
  6. Connect OpenAI: in the n8n credentials manager create a new OpenAI API Key credential. Get the key from your OpenAI account. Select this credential in both OpenAI model nodes.
  7. Connect Gmail: open the Gmail node, click Create new credential, and follow the on screen steps to allow send email. Send a test email to confirm access.
  8. Open the AI Agent node and choose the Airtable Tool with your Airtable credential so the agent can read the table. Keep the prompt text that asks for trends and new pin ideas.
  9. Review the Code node output by running it once. Check that each item includes the Organic tag and the fields you need. If fields are missing, adjust the mapping.
  10. Set the schedule to your preferred day and time in the Schedule Trigger node. Save the workflow and enable it.
  11. Run a full test: execute from the trigger, verify pins appear in Airtable, review the AI summary output, and confirm the email arrives in your inbox.
  12. Troubleshoot common issues: a 401 error from Pinterest means the token or scope is wrong, duplicates in Airtable mean the unique field is not set to pin_id, and missing emails often relate to Gmail permission or spam filters.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Airtable

Sign up

Free (1,000 API calls / mo)

Gmail

Sign up

No cost: Personal Gmail (Gmail API has no usage-based pricing; quotas apply)

OpenAI

Sign up

Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens

Pinterest

Sign up

Free: $0 (Direct API integration; Conversions API direct setup is free)

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.