Back to n8n Workflows

Rally Simple Demo

Mike Taylor Mike Taylor

Experience Rally's AI persona simulation with a simple question-and-answer interface. Ask anything and get diverse perspectives from virtual audience members, formatted in a clean, shareable HTML display.

Rally Simple Demo n8n workflow diagram

Click to expand

Summarize in
OR

Overview

This workflow provides a straightforward demonstration of Rally's AI persona simulation capabilities through a clean web interface. Users can ask any question through a simple form, and the workflow sends it to Rally's AI audience network to gather diverse perspectives from virtual personas. The responses are then formatted and displayed in an elegant HTML interface, making it perfect for testing Rally's capabilities, demonstrating audience simulation to stakeholders, or quickly gathering synthetic user insights on any topic.

 

🎯 Pro Tips & Secret Sauce

The magic is in the simplicity and immediate value demonstration:

  1. Zero-Friction Testing - Anyone can instantly experience Rally's capabilities - just type a question and see AI personas respond
  2. Clean Data Visualization - Responses are automatically formatted into a HTML display with bullet points, proper spacing, and clear hierarchy for easy reading and sharing
  3. Diverse Perspective Generation - Rally's AI personas provide varied viewpoints based on different backgrounds, expertise levels, and demographic profiles, simulating real focus group diversity
  4. Google Provider Integration - Uses Google's language models through Rally's platform for high-quality, contextually relevant responses from each persona

This creates the perfect "try before you buy" experience for Rally, allowing users to immediately understand the value of AI audience simulation without any complexity or commitment.

πŸ“ Step-by-Step Instructions

  1. Form Submission - User enters any question or topic they want to test with AI personas through the simple web form interface
  2. Rally API Query - Sends the user's question to Rally's backend using the Google language model provider and default tech professional audience (rb842b547c27640)
  3. Format HTML Response - Automatically structures the Rally API response into a clean, professional HTML display with title, summary, and bullet-pointed individual persona responses
  4. Display Results - Shows the formatted results in an elegant web interface that users can immediately review, screenshot, or share with others

πŸ“‹ Requirements

Required Integrations

  • Rally API - AI persona audience simulation service for generating diverse responses
  • Form Trigger - Web form interface for question input
  • Form Response - HTML display interface for formatted results

Required Credentials

  • Rally API Bearer token with audience access permissions

Setup Prerequisites

  • Active Rally account with configured audience personas (default: rb842b547c27640)
  • n8n instance with form trigger and response capabilities enabled
  • No additional external services or storage required

πŸš€ n8n Workflow Template

{
  "active": false,
  "connections": {
    "Ask Rally": {
      "main": [
        [
          {
            "index": 0,
            "node": "Display HTML",
            "type": "main"
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "index": 0,
            "node": "Ask Rally",
            "type": "main"
          }
        ]
      ]
    }
  },
  "id": "HYFOueY0mAr6eS2x",
  "meta": {
    "instanceId": "7aa2e96d57ff40383569724f8ecb13d674a87bf09d39aa5d8fa5ba31f7a8407a"
  },
  "name": "Rally",
  "nodes": [
    {
      "id": "5491d6a5-dafa-43a6-af52-5b6c35420abd",
      "name": "On form submission",
      "parameters": {
        "formFields": {
          "values": [
            {
              "fieldLabel": "Query",
              "requiredField": true
            }
          ]
        },
        "formTitle": "Ask anything",
        "options": {},
        "responseMode": "lastNode"
      },
      "position": [
        -440,
        0
      ],
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2.2,
      "webhookId": "6c20a59e-075a-4070-850e-95353cccabf9"
    },
    {
      "credentials": {
        "httpBearerAuth": {
          "id": "HeUQ9K9oUtQ5TyHr",
          "name": "Bearer Auth account"
        }
      },
      "id": "51a55a95-4efc-4532-8adf-236408e89c12",
      "name": "Ask Rally",
      "parameters": {
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "smart",
              "value": "false"
            },
            {
              "name": "provider",
              "value": "google"
            },
            {
              "name": "query",
              "value": "={{ $json.Query }}"
            },
            {
              "name": "audience_id",
              "value": "rb842b547c27640"
            }
          ]
        },
        "genericAuthType": "httpBearerAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            },
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        },
        "method": "POST",
        "options": {},
        "sendBody": true,
        "sendHeaders": true,
        "url": ""
      },
      "position": [
        -220,
        0
      ],
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2
    },
    {
      "id": "5e4a28e8-7e84-4fc5-a47d-450a3a4eb0bd",
      "name": "Display HTML",
      "parameters": {
        "operation": "completion",
        "respondWith": "showText",
        "responseText": "=\u003ch1\u003e{{ $json.title || \u0027Daily Check-In\u0027 }}\u003c/h1\u003e\n\n\u003cp\u003e{{ $json.summary }}\u003c/p\u003e\n\u003cbr\u003e\n\u003cp\u003e-----\u003c/p\u003e\n\u003chr\u003e\n\u003cbr\u003e\n\u003c!-- each response on its own line, double-spaced --\u003e\n{{ $json.responses\n     .filter(r =\u003e r.response)                               /* skip empties   */\n     .map(r =\u003e `\u0026bull;\u0026nbsp;${r.response}\u003cbr\u003e\u003cbr\u003e`)         /* \u2022 text \u003cbr\u003e\u003cbr\u003e*/\n     .join(\u0027\u0027) }}\n"
      },
      "position": [
        -20,
        0
      ],
      "type": "n8n-nodes-base.form",
      "typeVersion": 1,
      "webhookId": "205dca97-541a-4635-9957-4644c6400fa2"
    }
  ],
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "tags": [],
  "versionId": "5c4c84ab-9fd5-4880-8b88-c6a5438ea708"
}

About the Author

Mike Taylor

Mike Taylor

Mike Taylor is the CEO & Co-Founder of Rally. He previously co-founded a 50-person growth marketing agency called Ladder, created marketing & AI courses on LinkedIn, Vexpower, and Udemy taken by over 450,000 people, and published a book with O’Reilly on prompt engineering.