Skip to main content

Generate & optimize brand stories with Ollama LLMs and Google Sheets

Workflow preview

Workflow preview
100%
Generate & optimize brand stories with Ollama LLMs and Google Sheets preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This n8n automation template allows marketers, branding teams, and creative professionals to auto generate, evaluate, and iteratively optimize brand stories using Ollama hosted LLMs and LangChain a...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatollama, @n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.set, n8n-nodes-base.googlesheets, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Aashit Sharma.

Original n8n.io source

1.1 Workflow description

Title
Generate & optimize brand stories with Ollama LLMs and Google Sheets
Workflow name
Generate & optimize brand stories with Ollama LLMs and Google Sheets

Overview

This n8n automation template allows marketers, branding teams, and creative professionals to auto-generate, evaluate, and iteratively optimize brand stories using Ollama-hosted LLMs and LangChain agents. Each story is refined until it meets quality criteria and is then saved to Google Sheets for publishing or reuse.

⚠️ Note: This template uses community nodes and requires a self-hosted n8n instance with LangChain and Ollama integrations.

What the Workflow Does

Receives a chat-triggered brand story request

Guides the user to generate a structured brand story

Evaluates the story for tone, uniqueness, quote inclusion, and emoji removal

Loops through optimization until the story is finalized

Saves the final story to Google Sheets

Target Users

Startup founders

Brand consultants

Social media strategists

Marketers building bios, taglines, intros

Step-by-Step Setup Instructions

Setup Prerequisites

Install self-hosted n8n with LangChain and Ollama nodes

Load phi4-mini and qwen3:4b models into your local Ollama instance

Create a Google Sheet with a sheet named BrandStories and columns:

Name

Final Story

Timestamp

Trigger Configuration

Set up the Chat Trigger node (@n8n/n8n-nodes-langchain.chatTrigger) with webhook ID: fab30ad7-8a5a-4477-be98-1aa43b92b052

Customize Prompts

Update the Brand Storytelling Agent prompt to reflect your brand tone or story format

Optionally refine the Evaluator Agent criteria (e.g., enforce industry tone)

Google Sheets Setup

Use your Google Sheets OAuth2 credentials

Map fields to Name, Final Story, and Timestamp columns

Run the Flow

On new chat input, the system auto-generates a brand story

It loops between Evaluator and Optimizer agents until the output is labeled "Finished"

Final output is saved to your Google Sheet

Flowchart (mermaid)

mermaid Copy Edit flowchart TD A[Chat Trigger: New Message] --> B[Brand Storytelling Agent] B --> C[Set Bio Variable] C --> D[Evaluator Agent] D --> E{Is Output "Finished?"} E -- Yes --> F[Save Brand Story to Sheets] E -- No --> G[Optimizer Agent] G --> H[Update Bio Variable] H --> D

Credentials Used

Google Sheets OAuth2 for storage

Ollama API (local models phi4-mini and qwen3:4b)

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Evaluator Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 3 - Optimizer Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 4 - Ollama Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOllama - lmChatOllama
Config choices
Version 1

Block 5 - Ollama Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatOllama - lmChatOllama
Config choices
Version 1

Block 6 - Chat Input: Start Story Flow

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 7 - Brand Storytelling Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 8 - Set Brand variable

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 9 - Save Brand Story to Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 10 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Evaluation Check

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

3. Summary Table

Workflow Generate & optimize brand stories with Ollama LLMs and Google Sheets
Complexity intermediate
Nodes 13
Categories Content Creation, Multimodal AI
Author Aashit Sharma
Published 07 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4765/4765.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate & optimize brand stories with Ollama LLMs and Google Sheets do?

This n8n automation template allows marketers, branding teams, and creative professionals to auto generate, evaluate, and iteratively optimize brand stories using Ollama hosted LLMs and LangChain a...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.