Home / All Integrations / Mailchimp

free

Connect Mailchimp to your chatbot

Manage your mailchimp campaigns and contacts


Mailchimp is an always-on marketing platform for small businesses.

With this integration, you will be able to manage and send your campaigns, and subscribe/unsubscribe your leads to your contact lists!

Usage

To setup this App, you will need to retrieve your region (the <dc> part mentioned in Mailchimp's documentation, which is also in your Mailchimp Admin URL: https://.admin.mailchimp.com), and your Mailchimp API Key. Make sure to create an API Key, not a Client Key!

Action name Options Result
getCampaigns { type: '', count: 5 } An array
testCampaign { campaignId: '', emails: [] } Nothing
sendCampaign { campaignId: '' } Nothing
getLists {} An array
createList { name: '', contact: {} } An object
subscribeToList see example below An object
unsubscribeFromList { listId: '', memberId: '' } Nothing

Examples

Create a List

do myNewList = App(
  "mailchimp",
  action="createList",
  options={
    "name": "My list",
    "contact": {
      "company": "My company",
      "address1": "42 Rue des Tuileries",
      "address2": "",
      "city": "Paris",
      "state": "",
      "zip": "75001",
      "country": "FR",
      "phone": ""
    }
  }
))

say "{{myNewList.message}}"
say "Created list {{myNewList.data.name}}"

Subscribe a User to a List

do firstname = "John"
do lastname = "Doe"
do email = "john.doe@somecompany.com"
do listId = "abc123"

do options = {
  "listId": "abc123",
  "email": email,
  "firstname": firstname,
  "lastname": lastname,
}

// Alternatively, you can also use `merge_fields` as specified here:
// https://mailchimp.com/developer/marketing/docs/merge-fields/
do options = {
  "listId": "abc123",
  "email": email,
  "merge_fields": {
    "FNAME": firstname,
    "LNAME": lastname,
    ...
  }
}

do App("mailchimp", action="subscribeToList", options=options)
Discover similar integrations:
ActiveCampaign
Convomat
Klaviyo
Livestorm
Pipedrive
Subscribers

Join the Community
on Slack Slack

Come and learn all about CSML with other chatbot enthusiasts on the CSML Community Slack! ūü§ó