# Automate Reddit replies with F5Bot and OpenAI: n8n workflow

> Started by an arriving email, and works across Gmail, Google Sheets and Reddit. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/automate-reddit-replies-with-f5bot-and-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# Automate Reddit replies with F5Bot and OpenAI

Started by an arriving email, and works across Gmail, Google Sheets and Reddit. It hands the judgement calls to OpenAI. 23 steps, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomate-reddit-replies-with-f5bot-and-openai)

**23 steps** Large: read it before trusting it with anything live

**0** Branches: places the flow splits

**1** Loop or waits

**3** Services it connects to

## The flow

Starts it 2 Model 3 Logic 9 Service 9

The steps in the order they run, from what starts it.

- 1 **Gmail Trigger** Gmail trigger *Starts it*
- 2 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 3 **Structured Output Parser** Output Parser Structured *Model*
- 4 **When fetching a dataset row** Evaluation trigger *Starts it*
- 5 **Get Google Sheet** Google Sheets Tool *Service*
- 6 **Delay 5m** Wait *Logic*
- 7 **AI Agent** Agent *Model*
- 8 **Edit Fields** Set *Logic*
- 9 **Create a comment in a post** Reddit *Service*
- 10 **Filter Subreddit URLs** Code *Logic*
- 11 **Evaluate text format** Evaluation *Service*
- 12 **Evaluate link in text** Evaluation *Service*
- 13 **Evaluation ghseet tool** Evaluation *Service*
- 14 **Code in JavaScript1** Code *Logic*
- 15 **Merge Evaluations** Merge *Logic*
- 16 **Subreddit about** Reddit *Service*
- 17 **Get a post** Reddit *Service*
- 18 **Set Evaluation Output** Evaluation *Service*
- 19 **Subreddit rules** Reddit *Service*
- 20 **Filter Own Posts** Filter *Logic*
- 21 **Edit Fields1** Set *Logic*
- 22 **Input for AI** Set *Logic*
- 23 **Merge** Merge *Logic*

## How it's built

- **Starts on:** An arriving email
- **Steps:** 23, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Sheets, Reddit
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and Reddit accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an arriving email.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 23 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 23 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomate-reddit-replies-with-f5bot-and-openai)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Reddit](https://millionrounds.com/workflows?service=Reddit#library)

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**Categorize emails & get Telegram alerts with Azure OpenAI** 23 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/categorize-emails-and-get-telegram-alerts-with-azure-openai)
- [**Organize Gmail with OpenAI and Telegram** 23 steps · calls a model · Gmail, Telegram](https://millionrounds.com/workflow/organize-gmail-with-openai-and-telegram)
- [**Analyze contract risk from PDFs with OpenAI and Supabase** 23 steps · Gmail, Slack](https://millionrounds.com/workflow/analyze-contract-risk-from-pdfs-with-openai-and-supabase)
- [**Monitor customer risk and AI feedback with PostgreSQL** 23 steps · Discord, Gmail](https://millionrounds.com/workflow/monitor-customer-risk-and-ai-feedback-with-postgresql)
- [**URL and IP lookups with Greynoise and VirusTotal** 23 steps · Gmail, Slack](https://millionrounds.com/workflow/url-and-ip-lookups-with-greynoise-and-virustotal)
- [**User authentication system with Gmail and Postgres** 23 steps · Gmail, Postgres](https://millionrounds.com/workflow/user-authentication-system-with-gmail-and-postgres)
