Top 200 ReposEXPLORER
Browse agents, categories and pages
Back to results
Planned, not doneThe source describes an intention, not a finished result.

Draft Gmail Responses and LinkedIn Content Using n8n

Overview

Build two n8n workflows: one has an AI Agent save reply drafts for new Gmail messages, the other turns a list of topics into LinkedIn post drafts that you edit and publish yourself.

Problem or Objective

More in Workflow Automation

AI Agents and Models

Tools and Integrations

Tools
n8n · Gmail · LinkedIn
Prerequisites
An n8n instance (cloud or self-hosted), Google credentials for Gmail and LinkedIn credentials set up in n8n, and a chat model provider for the AI Agent nodes.

How It Works

In n8n, add Google and LinkedIn credentials and a chat model. Workflow one: a Schedule Trigger runs every hour, a Gmail node gets new unread messages, and an AI Agent node with the Gmail node connected as its one tool, limited to creating drafts, writes a reply draft for each message that needs one. Nothing is sent: you open Gmail, edit each draft and send it yourself. Workflow two: an AI Agent with the same Gmail draft tool takes a topic from your list and writes a LinkedIn post, saved as a draft email to yourself. When you approve a post, paste the edited text into a third, hand-run workflow whose LinkedIn node creates the post, or post it on LinkedIn directly. Publish the hourly workflow only after a few hand-run tests look right.

Implementation Workflow

Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.

  1. Choose the agentSet up n8n.
  2. Connect the toolsConnect the tools this workflow relies on: n8n, Gmail, LinkedIn.
  3. Check the prerequisitesAn n8n instance (cloud or self-hosted), Google credentials for Gmail and LinkedIn credentials set up in n8n, and a chat model provider for the AI Agent nodes.
  4. Gather your detailsCollect what the prompt asks for: Your tone, Maximum reply length in words, Senders to skip, List of post topics, Post length, Audience.
  5. Run the starter promptPaste the starter prompt below into n8n and adapt it to your case.
  6. Check against the documentationCompare what you get with the documentation at docs.n8n.io before you rely on it.

Practical Starter Prompt: Draft replies and posts for review

Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].

Preview
For each new email you receive, decide whether it needs a reply. If it does, write a reply in my voice ([Your tone]), at most [Maximum reply length in words] words, and use the Gmail tool only to create a draft; never send. Skip newsletters and anything from [Senders to skip]. For each topic in [List of post topics], write one LinkedIn post of [Post length] for [Audience] and save it as a draft email to me. I review, edit and send or post everything myself.

Split this into the instructions of the two AI Agent nodes. Connect only the Gmail draft operation as a tool. Send every reply from Gmail yourself and publish posts only after editing them, by hand or with a hand-run LinkedIn node workflow.

Expected Results and Benefits

This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.

This is a suggested workflow, not a reported outcome. The n8n pages document the Gmail node creating drafts and working as an AI tool, the LinkedIn node creating posts, the AI Agent node and its tool requirement, and the Schedule Trigger. No cited page shows the quality of the drafts a model writes, or whether a created draft lands in the original thread, so both are untested here.

Limitations and Considerations

Keep sending in your own hands: connect only the draft operation to the agent, never the Gmail send or reply operations, and check this before the first run. Check whether drafts land in the right thread before you rely on them. Every LinkedIn post is approved and published by you; check LinkedIn's current rules for posting through its API. The Google credential grants access to your mailbox, so keep the n8n instance private. Model usage is billed by your provider. Results depend on your setup and were not independently reproduced by Top 200 Repos.

GitHub Repositories

AI Agent Repository

Source code of the agent that does the work.

Official Website

The official site of the main tool or project in this use case.

Visit Website (opens in a new tab)n8n.io

Related Videos

About n8n-io/n8n

About n8n-io/n8n

Independent creators. Listing a video implies no endorsement, sponsorship or partnership.

Sources

  1. Gmail | Nodes | n8n Docs (opens in a new tab)

    Project documentation · docs.n8n.io · Undated · Source checked 27 Nov 2026, 13:54 UTC

    What this source supports
    • n8n has built-in support for a wide range of Gmail features, including creating, updating, deleting, and getting drafts, messages, labels, and threads.
    • This node can be used to enhance the capabilities of an AI agent.
  2. LinkedIn | Nodes | n8n Docs (opens in a new tab)

    Project documentation · docs.n8n.io · Undated · Source checked 25 Nov 2026, 12:10 UTC

    What this source supports
    • Use the LinkedIn node to automate work in LinkedIn, and integrate LinkedIn with other applications.
    • n8n supports creating posts.
  3. AI Agent | Nodes | n8n Docs (opens in a new tab)

    Project documentation · docs.n8n.io · Undated · Source checked 26 Nov 2026, 17:27 UTC

    What this source supports
    • You must connect at least one tool sub-node to an AI Agent node.
  4. Schedule Trigger | Nodes | n8n Docs (opens in a new tab)

    Project documentation · docs.n8n.io · Undated · Source checked 25 Nov 2026, 12:10 UTC

    What this source supports
    • Use the Schedule Trigger node to run workflows at fixed intervals and times.
Report a problem

More with n8n

Planned, not done

Support Customers Through Telegram Messages

An n8n workflow turns new customer emails and contact-form messages into tasks with draft replies, and sends each draft to the owner in Telegram with Approve and Decline buttons before anything goes out.

docs.n8n.ion8n-io/n8n
Planned, not done

Capture Restaurant Orders With a Conversational Agent

Build an n8n chat that takes a customer's food order from your menu, reads it back, and records it in a data table only after a staff member approves it in Slack.

docs.n8n.ion8n-io/n8n
Reported by source

Build a self-hosted AI agent workflow with human approval

Use n8n's visual canvas to wire an LLM agent to your apps, add tools and memory, and pause for human approval before it acts.

github.comn8n-io/n8n

View all: n8n