{
  "schema_version": "1.0.0",
  "id": "activecampaign-interest-tags",
  "title": "Tag ActiveCampaign contacts by the interest they picked",
  "category": "lead-gen-crm",
  "difficulty": "intermediate",
  "featured": false,
  "description": "Map the interest a Typeform respondent picked to an ActiveCampaign tag with a lookup table, then enrol them in the nurture automation.",
  "tags": [
    "email-marketing",
    "activecampaign",
    "typeform",
    "segmentation"
  ],
  "apps": [
    "Typeform",
    "Formatter by Zapier",
    "ActiveCampaign"
  ],
  "plan": {
    "minimum": "Professional",
    "reasons": [
      "multi-step Zap: 3 steps after the trigger",
      "Formatter by Zapier"
    ]
  },
  "tasks": {
    "typical": 2,
    "max": 2
  },
  "trigger": {
    "app": "Typeform",
    "event": "New Entry",
    "kind": "instant",
    "title": "Quiz completed",
    "why": "Fires on each completed quiz.",
    "config": {
      "Form": "Which plan fits you?"
    },
    "outputs": [
      "response_id",
      "submitted_at",
      "first_name",
      "email",
      "interest",
      "experience_level"
    ],
    "sample": "sample-trigger.json"
  },
  "steps": [
    {
      "key": "tag",
      "kind": "formatter",
      "app": "Formatter by Zapier",
      "event": "Utilities",
      "title": "Turn the answer into a tag",
      "why": "A lookup table maps the answer text to a stable tag. Rewording a quiz answer later only means editing this table, not the automations.",
      "fields": {
        "Transform": "Lookup Table",
        "Lookup Key": "{{trigger.interest}}",
        "Lookup Table": {
          "Getting more clients": "interest-acquisition",
          "Raising my prices": "interest-pricing",
          "Saving time on admin": "interest-operations",
          "Hiring my first person": "interest-hiring"
        },
        "Fallback Value": "interest-general"
      },
      "outputs": [
        "output"
      ]
    },
    {
      "key": "contact",
      "kind": "action",
      "app": "ActiveCampaign",
      "event": "Create/Update Contact",
      "title": "Create or update the contact with the tag",
      "why": "Adds the interest tag and the experience level, which the automation uses to branch.",
      "fields": {
        "Email": "{{trigger.email}}",
        "First Name": "{{trigger.first_name}}",
        "Tags": "{{tag.output}}, quiz-taker",
        "Experience level (custom field)": "{{trigger.experience_level}}"
      },
      "outputs": [
        "id"
      ]
    },
    {
      "key": "enrol",
      "kind": "action",
      "app": "ActiveCampaign",
      "event": "Add Contact to Automation",
      "title": "Start the nurture automation",
      "why": "One automation for everyone; inside ActiveCampaign it branches on the interest tag.",
      "fields": {
        "Automation": "Quiz nurture",
        "Contact Email": "{{trigger.email}}"
      },
      "outputs": [
        "id"
      ]
    }
  ]
}
