← All N8N workflows
AI & researchChain LLMCodeEmail SendGoogle SheetsGoogle Sheets Trigger

Here you can modify the prompt

Configured with Chain LLM, Email Send, Google Sheets, Google Sheets Trigger, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
TransformSet your company'svariablesEdit FieldsWeb / APIGet linkedin PostsHTTP RequestWeb / APIGet twitter IDHTTP RequestWeb / APIGet tweetsHTTP RequestCodeExtract and limitLinkedinCodeCodeExract and limit XCodeAI & modelsOpenAI Chat ModelOpenAI Chat ModelTransformStructured OutputParserOutput Parser StructuredAI & modelsGenerate Subject andcover letter based on…Chain LLMMessagingSend Cover letter andCC meEmail SendTriggerGoogle Sheets TriggerGoogle Sheets TriggerData storeGoogle SheetsGoogle SheetsRoutingIfIf

Node categories in this workflow

  • Transform
  • Web / API
  • Code
  • AI & models
  • Messaging
  • Trigger
  • Data store
  • Routing

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Set your company's variablesTransformEdit FieldsSee node parameters
Get linkedin PostsWeb / APIHTTP RequestSee node parameters
Get twitter IDWeb / APIHTTP RequestSee node parameters
Get tweetsWeb / APIHTTP RequestSee node parameters
Extract and limit LinkedinCodeCodeSee node parameters
Exract and limit XCodeCodeSee node parameters
OpenAI Chat ModelAI & modelsOpenAI Chat ModelSee node parameters
Structured Output ParserTransformOutput Parser StructuredSee node parameters
Generate Subject and cover letter based on matchAI & modelsChain LLMSee node parameters
Send Cover letter and CC meMessagingEmail SendSee node parameters
Google Sheets TriggerTriggerGoogle Sheets TriggerSee node parameters
Google SheetsData storeGoogle Sheetsupdate
IfRoutingIfSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • googleSheetsOAuth2Api
  • googleSheetsTriggerOAuth2Api
  • httpHeaderAuth
  • openAiApi
  • smtp

Workflow notes

Personalize here

Personalize here

Set:

  • your name
  • your company name
  • your company activity, used to find a match with your leads
  • your email, used as the sender
Create a Gooogle sheet with the following columns:

Create a Gooogle sheet with the following columns:

  • linkedin_url
  • name
  • twitter_handler
  • email
  • done

And put some data in it except in "done" that should remain empty.

Here you can modify the prompt

Here you can modify the prompt

  • make it better by adding some examples
  • Follow a known framework etc.
Call RapidAPI Twitter API Profile Data

Call RapidAPI Twitter API Profile Data

You have to create an account in RapidAPI and subscribe to Twiiter API. With a free account you will be able to scrape 500 tweets / month. After your subscription you will have to choose as Generic Auth Type: Header Auth and then put as header name: "x-rapidapi-key" and the value given in the RapidAPI interface

Call RapidAPI Fresh Linkedin Profile Data

Call RapidAPI Fresh Linkedin Profile Data

You have to create an account in RapidAPI and subscribe to Fresh LinkedIn Profile Data. With a free account you will be able to scrape 100 profile / month. After your subscription you will have to choose as Generic Auth Type: Header Auth and then put as header name: "x-rapidapi-key" and the value given in the RapidAPI interface

Social Media Analysis and Automated Email Generation

Social Media Analysis and Automated Email Generation

by Thomas Vie user@example.com

Who is this for?

This template is ideal for marketers, lead generation specialists, and business professionals seeking to analyze social media profiles of potential leads and automate personalized email outreach efficiently.

What problem is this workflow solving?

Manually analyzing social media profiles and crafting personalized emails can be time-consuming and prone to errors. This workflow streamlines the process by integrating social media APIs with AI to generate tailored communication, saving time and increasing outreach effectiveness.

What this workflow does:

  1. Google Sheets Integration: Start with a Google Sheet containing lead information such as LinkedIn URL, Twitter handle, name, and email.
  2. Social Media Data Extraction: Automatically fetch profile and activity data from Twitter and LinkedIn using RapidAPI integrations.
  3. AI-Powered Content Generation: Use OpenAI's Chat Model to analyze the extracted data and generate personalized email subject lines and cover letters.
  4. Automated Email Dispatch: Send the generated email directly to the lead, with a copy sent to yourself for tracking purposes.
  5. Progress Tracking: Update the Google Sheet to indicate completed actions.

Setup:

  1. Google Sheets:
  • Create a sheet with the columns: LinkedIn URL, name, Twitter handle, email, and a "done" column for tracking.
  • Populate the sheet with your leads.
  1. RapidAPI Accounts:
  • Sign up for RapidAPI and subscribe to the Twitter and LinkedIn API plans.
  • Configure API authentication keys in the workflow.
  1. AI Configuration:
  • Connect OpenAI Chat Model with your API key for text generation.
  1. Email Integration:
  • Add your email credentials or service (SMTP or third-party service like Gmail) for sending automated emails.

How to customize this workflow to your needs:

  • Modify the AI Prompt: Adapt the prompt in the AI node to better align with your tone, style, or specific messaging framework.
  • Expand Data Fields: Add additional data fields in Google Sheets if you require further personalization.
  • API Limits: Adjust API configurations to fit your usage limits or upgrade to higher tiers for increased data scraping capabilities.
  • Personalize Email Templates: Tweak email formats to suit different audiences or use cases.
  • Extend Functionality: Integrate additional social media platforms or CRM tools as needed.

By implementing this workflow, you’ll save time on repetitive tasks and create more effective lead generation strategies.

Here you can modify the prompt

Here you can modify the prompt

Purpose and structure

This folder contains the Here you can modify the prompt workflow. Its executable nodes use chainLlm, code, emailSend, googleSheets, googleSheetsTrigger, httpRequest, if, lmChatOpenAi, outputParserStructured, set. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Google Sheets Trigger

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Code/1664_Code_HTTP_Send_Webhook.json MIT; preserve source notices.

More in AI & research