# Brief to three campaign routes

n8n workflows · n8n workflow

Puts a brief form in front of Gemini. Whoever fills it in gets three different campaign routes back on the form's last screen.

## Workflow

### The workflow

The full workflow. Its Read me first note on the canvas repeats the setup.

```json
{
  "name": "Brief to three campaign routes",
  "nodes": [
    {
      "parameters": {
        "content": "## Brief to three campaign routes\nA form asks for the brand, the product, the audience and the brief. Gemini writes three different campaign routes and shows them on the form's last screen.\n\n### 1. Connect one credential\nMake an API key at aistudio.google.com/apikey (Create API key). Open **Google Gemini Chat Model**, and under Credential choose **Create new credential**. The type is **Google Gemini(PaLM) Api**. Paste the key into API Key, leave Host as it is, and save.\n\n### 2. Change what you like\nThe instructions are in **Write three routes**, under Chat Messages. The model is Gemini 3.8 Flash. When Google retires it, open the model node and pick the newest Flash model in the list.\n\n### 3. Test it once\nClick **Execute workflow**. Fill in the form that opens, then wait on the last screen while the routes are written. When they read well, **Publish** the workflow and share the **Production URL** from the form node.\n\n### Using Claude instead\nDelete Google Gemini Chat Model, add **Anthropic Chat Model**, connect it to the Model input of Write three routes, and give it an **Anthropic** credential with your Claude API key.",
        "height": 820,
        "width": 560
      },
      "id": "728568a0-c81f-4969-8fa1-eeab392e248e",
      "name": "Read me first",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -640,
        -260
      ]
    },
    {
      "parameters": {
        "formTitle": "Campaign brief",
        "formDescription": "Fill in the brief. Three campaign routes come back on the next screen.",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Brand",
              "fieldName": "brand",
              "placeholder": "The brand's name, and what it sells",
              "requiredField": true
            },
            {
              "fieldLabel": "Product or collection",
              "fieldName": "product",
              "placeholder": "What this campaign is selling",
              "requiredField": true
            },
            {
              "fieldLabel": "Audience",
              "fieldName": "audience",
              "fieldType": "textarea",
              "placeholder": "Who buys it, where they live, what they care about",
              "requiredField": true
            },
            {
              "fieldLabel": "The brief",
              "fieldName": "brief",
              "fieldType": "textarea",
              "placeholder": "What the campaign has to do, when it runs, the budget, and anything that is off limits",
              "requiredField": true
            }
          ]
        },
        "options": {
          "buttonLabel": "Write the routes"
        }
      },
      "id": "436f6e34-f22d-42e4-8c7a-ae5a1c0ab6cf",
      "name": "Campaign brief form",
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2.6,
      "position": [
        0,
        0
      ],
      "webhookId": "7a767db4-5dc3-44ea-8ac5-fab8a345d922"
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=Brand: {{ $json.brand }}\nProduct or collection: {{ $json.product }}\nAudience: {{ $json.audience }}\n\nThe brief:\n{{ $json.brief }}",
        "messages": {
          "messageValues": [
            {
              "message": "You are a senior creative director at an independent agency. You write campaign routes that a small brand can afford to make.\n\nWrite three campaign routes for the brief you are given. Each route starts from a different place:\n1. The product itself: what it does, how it is made, a detail only this product has.\n2. The audience's life: a habit, a tension or a moment they would recognise.\n3. Culture or place: something happening in the world the brand sells into.\nIf the brief rules one of these out, say so in one line and use another starting point.\n\nFor each route write these parts, in this order, each on its own line:\nROUTE 1 (then 2, then 3): a name of two to four words.\nTHE IDEA: two sentences a client could repeat after one reading.\nTHE LINE: one headline or campaign line, under ten words, in the brand's voice.\nTHE PICTURES: what the photographs or films look like: the setting, the light, who is cast, and the one shot that sums up the route. Write it so a photographer could plan the day.\nWHERE IT RUNS: the two or three places this route works best, and why, chosen for the budget and the audience in the brief.\nTHE RISK: one honest sentence on what could go wrong.\n\nRules:\nPlain text only. No Markdown, no asterisks, no hash signs, no bullet symbols. Leave one empty line between routes.\nBritish spelling. No exclamation marks.\nDo not invent facts about the brand, its prices, its customers or its results. Where the brief is silent, write around the gap.\nAvoid these words: elevate, unlock, seamless, vibrant, game-changing, journey.\nAfter the third route, add a line headed QUESTIONS FOR THE CLIENT with up to three things the brief left unclear, then stop."
            }
          ]
        },
        "batching": {}
      },
      "id": "f5f17f6f-1616-46c8-a76d-e1424c1fd8b0",
      "name": "Write three routes",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "typeVersion": 1.9,
      "position": [
        260,
        0
      ]
    },
    {
      "parameters": {
        "modelName": "models/gemini-3.8-flash",
        "options": {}
      },
      "id": "6034edcb-4ef6-415f-b88e-d1cdb5ffaeeb",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "typeVersion": 1.1,
      "position": [
        260,
        240
      ]
    },
    {
      "parameters": {
        "operation": "completion",
        "completionTitle": "Three routes",
        "completionMessage": "={{ $('Write three routes').first().json.text }}",
        "options": {}
      },
      "id": "09989ed7-77c5-4e78-ae28-4b265b0e2cd0",
      "name": "Show the routes",
      "type": "n8n-nodes-base.form",
      "typeVersion": 2.5,
      "position": [
        620,
        0
      ],
      "webhookId": "8c4c0a08-860b-4586-ac01-6971453679d1"
    }
  ],
  "connections": {
    "Campaign brief form": {
      "main": [
        [
          {
            "node": "Write three routes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Write three routes": {
      "main": [
        [
          {
            "node": "Show the routes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Write three routes",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "id": "4LF11qdVSsierjkj"
}
```

## How to use

1. Press Copy on the workflow above, click an empty spot on a new n8n canvas and press Cmd+V (Ctrl+V on Windows).
2. Make an API key at aistudio.google.com/apikey. Open Google Gemini Chat Model and add the key as a new Google Gemini(PaLM) Api credential.
3. Click Execute workflow, fill in the form that opens and wait on the last screen while the routes are written.
4. When the routes read well, Publish the workflow and share the Production URL from the form node.

## Tips

- To change what Gemini is asked, edit the instructions in Write three routes, under Chat Messages.
- Google may use prompts sent on Gemini's free tier to improve its products, so think twice before pasting a confidential brief.
- To use Claude, swap Google Gemini Chat Model for Anthropic Chat Model and give it an Anthropic credential with your Claude API key.

From the Tastebud AI toolkit.
