{
  "key": "mailchimp_setup_access",
  "title": "Get us into Mailchimp",
  "variables": {
    "who_needs_access": {
      "type": "email_list",
      "label": "Emails needing access",
      "required": true
    }
  },
  "start": "have_account",
  "steps": [
    {
      "id": "have_account",
      "owner": "client",
      "instruction": "We'll use Mailchimp for your email marketing.",
      "primary": {
        "label": "We have Mailchimp",
        "to": "grant"
      },
      "alternatives": [
        {
          "key": "no_account",
          "label": "We don't have Mailchimp yet",
          "kind": "jump",
          "to": "create"
        },
        {
          "key": "later",
          "label": "I'll do it later",
          "kind": "flag",
          "tone": "ack"
        },
        {
          "key": "trouble",
          "label": "Having trouble",
          "kind": "flag",
          "tone": "attention"
        }
      ]
    },
    {
      "id": "create",
      "owner": "client",
      "instruction": "Set up a **free** Mailchimp account at [mailchimp.com](https://mailchimp.com) — the free plan caps contacts at 250, which won't work long term, but it gives us everything we need to build. Hold off importing your contacts and picking a paid plan until you actually have an email to send.",
      "primary": {
        "label": "Created",
        "to": "grant"
      },
      "alternatives": [
        {
          "key": "trouble",
          "label": "Having trouble",
          "kind": "flag",
          "tone": "attention"
        }
      ],
      "tutorial": {
        "title": "Creating a free Mailchimp account",
        "intro": "The free plan is plenty to start — you can upgrade later without redoing anything.",
        "steps": [
          {
            "text": "Go to [mailchimp.com](https://mailchimp.com) and click **Sign up free**."
          },
          {
            "text": "Enter your email, pick a username and password, and confirm the email Mailchimp sends you."
          },
          {
            "text": "When it asks about a plan, choose **Free**.",
            "note": "Mailchimp nudges hard toward paid plans during setup — the free option is there, sometimes as a smaller link below the paid cards."
          },
          {
            "text": "Fill in your business name and address.",
            "note": "A physical address is legally required on marketing email, so this isn't optional — a business address is fine."
          },
          {
            "text": "Come back and press **Account created** — then we'll ask you to invite us."
          }
        ]
      }
    },
    {
      "id": "grant",
      "owner": "client",
      "instruction": "In Mailchimp: profile icon > Account & billing > Settings > Users > Invite a user. Admin level is ideal.",
      "targets": "who_needs_access",
      "primary": {
        "label": "Invited",
        "to": "verify"
      },
      "alternatives": [
        {
          "key": "trouble",
          "label": "Having trouble",
          "kind": "flag",
          "tone": "attention"
        }
      ],
      "tutorial": {
        "title": "Inviting us to Mailchimp",
        "steps": [
          {
            "text": "In Mailchimp, click your **profile icon** in the bottom-left, then **Account & billing**."
          },
          {
            "text": "Open the **Settings** menu, then **Users**.",
            "image": "asset://mc-mailchimp-users.png"
          },
          {
            "text": "Click **Invite a user**, enter {{who_needs_access}}, and choose the **Admin** level.",
            "note": "Admin lets us build and send campaigns for you. Manager works too if you'd rather keep billing entirely to yourself."
          },
          {
            "text": "Click **Send invite**."
          }
        ]
      }
    },
    {
      "id": "verify",
      "owner": "team",
      "instruction": "Accept the invites and confirm access works.",
      "primary": {
        "label": "Confirmed",
        "to": "$done"
      },
      "alternatives": [
        {
          "key": "missing",
          "label": "Someone's missing — back to the client",
          "kind": "jump",
          "to": "grant"
        }
      ]
    }
  ]
}
