Back to n8n Workflows

Generate AskRally Audience From Form Submission

Mike Taylor Mike Taylor

Submit your audience description into a form and generate an AskRally audience with AI personas ready to answer your questions.

Generate AskRally Audience From Form Submission  n8n workflow diagram

Click to expand

Summarize in
OR

📋 Requirements

AskRally API key.

🚀 n8n Workflow Template

{
  "active": false,
  "connections": {
    "Create Audience": {
      "main": [
        [
          {
            "index": 0,
            "node": "audience_id",
            "type": "main"
          }
        ]
      ]
    },
    "Generate Personas": {
      "main": [
        [
          {
            "index": 0,
            "node": "Create Audience",
            "type": "main"
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "index": 0,
            "node": "Generate Personas",
            "type": "main"
          }
        ]
      ]
    }
  },
  "id": "LcPoI1MeLzkxKV0m",
  "meta": {
    "instanceId": "7aa2e96d57ff40383569724f8ecb13d674a87bf09d39aa5d8fa5ba31f7a8407a"
  },
  "name": "Generate Rally Audiences",
  "nodes": [
    {
      "id": "afe5b312-ddcf-43b5-a8cb-0fc2cf3cc13a",
      "name": "On form submission",
      "parameters": {
        "formFields": {
          "values": [
            {
              "fieldLabel": "Audience Title",
              "placeholder": "e.g. Students in London",
              "requiredField": true
            },
            {
              "fieldLabel": "Audience Description",
              "placeholder": "e.g. Students of a range of degree topics all based in London Universities.",
              "requiredField": true
            },
            {
              "fieldLabel": "Number of Personas",
              "fieldType": "number",
              "placeholder": "Maximum 20",
              "requiredField": true
            }
          ]
        },
        "formTitle": "Rally Audience Creator",
        "options": {}
      },
      "position": [
        0,
        0
      ],
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2.3,
      "webhookId": "58fa725e-1b4a-4b53-8ec4-f1fa1f3ced58"
    },
    {
      "credentials": {
        "httpBearerAuth": {
          "id": "rTUQaBawbrbCmjG1",
          "name": "Rally API"
        }
      },
      "id": "3a6a575c-4e35-4182-985a-3e3882b9335e",
      "name": "Create Audience",
      "parameters": {
        "authentication": "predefinedCredentialType",
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        },
        "jsonBody": "={\n  \"description\": \"{{ $(\u0027On form submission\u0027).item.json[\u0027Audience Description\u0027] }}\",\n  \"name\": \"{{ $(\u0027On form submission\u0027).item.json[\u0027Audience Title\u0027] }}\",\n  \"personas\": {{ JSON.stringify($json.personas) }}\n} ",
        "method": "POST",
        "nodeCredentialType": "httpBearerAuth",
        "options": {},
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "url": "https://api.askrally.com/api/v1/audiences"
      },
      "position": [
        416,
        0
      ],
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2
    },
    {
      "credentials": {
        "httpBearerAuth": {
          "id": "rTUQaBawbrbCmjG1",
          "name": "Rally API"
        }
      },
      "id": "0d39c3bf-f69b-450d-b8cb-e8e82a1bbe71",
      "name": "Generate Personas",
      "parameters": {
        "authentication": "predefinedCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "smart",
              "value": "false"
            },
            {
              "name": "provider",
              "value": "openai"
            },
            {
              "name": "description",
              "value": "={{ $json[\u0027Audience Description\u0027] }}"
            },
            {
              "name": "count",
              "value": "={{ $json[\u0027Number of Personas\u0027] }}"
            },
            {
              "name": "=name",
              "value": "={{ $json[\u0027Audience Title\u0027] }}"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        },
        "method": "POST",
        "nodeCredentialType": "httpBearerAuth",
        "options": {},
        "sendBody": true,
        "sendHeaders": true,
        "url": "https://api.askrally.com/api/v1/audiences/generate"
      },
      "position": [
        208,
        0
      ],
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2
    },
    {
      "id": "aac12e54-b9b3-4c11-9a0e-431bb3429940",
      "name": "audience_id",
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "50d53a5b-c4da-4968-a268-91ba8ecdffa0",
              "name": "audience_id",
              "type": "string",
              "value": "={{ $json.audience_id }}"
            }
          ]
        },
        "options": {}
      },
      "position": [
        624,
        0
      ],
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4
    }
  ],
  "pinData": {
    "Create Audience": [
      {
        "json": {
          "audience_id": "r06b5546b357143",
          "message": "Audience created successfully"
        }
      }
    ],
    "Generate Personas": [
      {
        "json": {
          "count": 5,
          "personas": [
            {
              "age": 21,
              "background": "Aspiring economist passionate about sustainable development.\n\nDemographics\nEducation: University College London, Bachelor\u0027s in Economics\nHousehold: Lives with two roommates\nPolitical views: Liberal\nReligious views: None\n\nWork\nWorks at N/A - Currently a full-time student\nFocused on coursework, participating in economics clubs, and engaging in internship searches.\n\nGoals\n- Pursue a Master\u0027s degree in Environmental Economics\n- Contribute to policy-making for climate change\n- Gain practical experience through internships\n\nPersonality\n- Openness: High - Very curious and loves exploring new ideas\n- Conscientiousness: Medium - Often organized but can be spontaneous\n- Extraversion: Medium - Enjoys social settings but needs alone time\n- Agreeableness: High - Compassionate and values collaboration\n- Neuroticism: Medium - Occasionally anxious about future job security\n\nInterests\n- Sustainable development policies\n- Volunteering for environmental NGOs\n- Hiking and nature photography\n- Cooking and exploring international cuisines\n\nValues \u0026 Beliefs\n- Believes in the importance of sustainable practices\n- Advocates for social equity through economics\n- Values lifelong learning and personal growth\n\nHealth\nGenerally healthy, but experiences stress during exams.\n\nBackground\n- Grew up in a supportive family that valued education\n- Participated in various extracurricular activities at school\n- Discovered passion for economics through a sustainability project in high school.\n- Interned at a local NGO, focusing on economic impacts of climate change.",
              "base_memories": null,
              "gender": "Female",
              "income": "15k",
              "initials": "EJ",
              "location": "London, UK",
              "name": "Emma Johnson",
              "occupation": "Student"
            },
            {
              "age": 23,
              "background": "Student and part-time trader focused on financial markets.\n\nDemographics\nEducation: London School of Economics, Bachelor\u0027s in Economics\nHousehold: Lives alone\nPolitical views: Moderate\nReligious views: Agnostic\n\nWork\nWorks at N/A - Currently studying, also trading stocks part-time\nAnalyzing market trends and actively investing in stocks while managing academic responsibilities.\n\nGoals\n- Become a financial analyst after graduation\n- Grow trading portfolio to support further investment studies\n- Network with professionals in the finance industry\n\nPersonality\n- Openness: Medium - Open to new ideas but prefers structured environments\n- Conscientiousness: High - Very organized and disciplined in studies\n- Extraversion: High - Enjoys networking and social gatherings\n- Agreeableness: Medium - Cooperative but competitive in trading\n- Neuroticism: Low - Generally calm and composed.\n\nInterests\n- Financial markets and stock trading\n- Attending finance-related seminars\n- Playing chess and strategizing\n- Participating in university trading clubs\n\nValues \u0026 Beliefs\n- Thinks financial literacy is key to economic empowerment\n- Values innovation and tech-driven finance solutions\n- Believes in the importance of a diversified investment portfolio\n\nHealth\nActive lifestyle, attends gym regularly, experiences mild anxiety during exams.\n\nBackground\n- Raised in a competitive environment that encouraged financial knowledge\n- Became interested in economics during high school when learning about market dynamics\n- Interned at a local brokerage firm, developing trading strategies.\n- Engaged actively in university trading competitions.",
              "base_memories": null,
              "gender": "Male",
              "income": "20k",
              "initials": "JW",
              "location": "London, UK",
              "name": "James Wong",
              "occupation": "Student"
            },
            {
              "age": 22,
              "background": "International student studying economics with a focus on development.\n\nDemographics\nEducation: SOAS University of London, Bachelor\u0027s in Economics\nHousehold: Lives with international peers in student accommodation\nPolitical views: Progressive\nReligious views: Hindu\n\nWork\nWorks at N/A - Full-time student at SOAS\nStudying economics with a focus on development, actively involved in student organizations promoting cultural diversity.\n\nGoals\n- Work with an international organization on economic development\n- Be a voice for women\u0027s economic empowerment\n- Pursue a PhD in Development Economics\n\nPersonality\n- Openness: Very high - Very open-minded and adventurous\n- Conscientiousness: High - Committed to academic excellence\n- Extraversion: Medium - Values friendships but also introspective\n- Agreeableness: High - Empathetic and supportive of peers\n- Neuroticism: Medium - Sometimes feels overwhelmed by workload.\n\nInterests\n- Diversity and inclusion initiatives\n- Cultural exchanges and learnings\n- Traveling to understand global economic issues\n- Cooking traditional Indian dishes.\n\nValues \u0026 Beliefs\n- Believes in the importance of education for development\n- Values cultural exchange and understanding\n- Advocates for women\u0027s rights and empowerment in economics\n\nHealth\nGood physical health, occasionally feels homesick, practices yoga.\n\nBackground\n- Grew up in a multicultural family that valued education\n- Always interested in how economies function, motivated by her family\u0027s struggles\n- Participated in youth programs focused on global development issues in India.\n- Volunteered for local NGOs during summers, gaining practical knowledge.",
              "base_memories": null,
              "gender": "Female",
              "income": "18k",
              "initials": "AP",
              "location": "London, UK",
              "name": "Asha Patel",
              "occupation": "Student"
            },
            {
              "age": 24,
              "background": "Economics major with a passion for econometrics and data analysis.\n\nDemographics\nEducation: King\u0027s College London, Bachelor\u0027s in Economics\nHousehold: Lives with a partner\nPolitical views: Center-right\nReligious views: None\n\nWork\nWorks at N/A - Full-time student\nEngaged in academic research projects, focusing on data interpretation and statistical analysis.\n\nGoals\n- Transition into a career in data analysis or applied economics\n- Contribute to innovative research that impacts policy\n- Study for an advanced degree in Econometrics\n\nPersonality\n- Openness: Medium - Appreciates new methods but values traditional ones too\n- Conscientiousness: High - Diligent in studies and projects\n- Extraversion: Low - Prefers quiet environments for optimal focus\n- Agreeableness: Medium - Friendly but can be blunt\n- Neuroticism: Medium - Can feel stressed but manages well.\n\nInterests\n- Data science and statistical programming\n- Reading economic journals\n- Playing board games with friends\n- Running and outdoor sports\n\nValues \u0026 Beliefs\n- Believes that data-driven decisions are crucial for policy-making\n- Values continual improvement through learning\n- Advocates for practical economics education\n\nHealth\nGenerally healthy lifestyle, runs regularly, has mild allergies.\n\nBackground\n- Grew up in rural Ireland, community-oriented with strong family values\n- Discovered passion for economics through math-related subjects in secondary school\n- Participated in local summer programs focused on economics education.\n- Moved to London for university to access diverse opportunities.",
              "base_memories": null,
              "gender": "Male",
              "income": "17k",
              "initials": "LO",
              "location": "London, UK",
              "name": "Liam O\u0027Connor",
              "occupation": "Student"
            },
            {
              "age": 20,
              "background": "Passionate economics student focusing on international trade and development.\n\nDemographics\nEducation: City University of London, Bachelor\u0027s in Economics\nHousehold: Lives with family in London\nPolitical views: Liberal\nReligious views: Christian\n\nWork\nWorks at N/A - Full-time student\nEngaged in projects related to international trade and its impacts.\n\nGoals\n- Pursue a career in international trade policy\n- Write about economic issues in a blog\n- Participate in international internships\n\nPersonality\n- Openness: High - Eager to learn and experience new cultures\n- Conscientiousness: Medium - Balanced in academics and personal life\n- Extraversion: High - Enjoys engaging with others and discussing ideas\n- Agreeableness: High - Values teamwork and collaboration\n- Neuroticism: Low - Generally remains positive and resilient.\n\nInterests\n- Traveling and exploring world cultures\n- Engaging in student activism\n- Cooking and sharing meals with friends\n- Writing creatively about economic issues.\n\nValues \u0026 Beliefs\n- Values fairness and equity in international trade\n- Believes in the empowerment through education and knowledge-sharing\n- Supports environmentally friendly trade practices.\n\nHealth\nGood mental and physical health, practices self-care regularly.\n\nBackground\n- Raised in a supportive family that encouraged education\n- Developed passion for economics during high school debates\n- Participated in exchange programs promoting cultural diversity.\n- Engaged in various economic research workshops during university.",
              "base_memories": null,
              "gender": "Female",
              "income": "15k",
              "initials": "CK",
              "location": "London, UK",
              "name": "Chloe Kim",
              "occupation": "Student"
            }
          ]
        }
      }
    ],
    "On form submission": [
      {
        "json": {
          "Audience Description": "Students of economics in london universities",
          "Audience Title": "Econ Students London",
          "Number of Personas": 5,
          "formMode": "test",
          "submittedAt": "2025-09-30T13:25:23.854-04:00"
        }
      }
    ]
  },
  "settings": {
    "executionOrder": "v1"
  },
  "tags": [],
  "versionId": "a1b58992-8af6-41d1-8234-ec0709488f07"
}

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.