Pure Chat Mailchimp Integration Fixed May 2026
resp = requests.put( f"https://config['dc'].api.mailchimp.com/3.0/lists/config['list_id']/members/subscriber_hash", headers="Authorization": f"Bearer config['access_token']", json= "email_address": data['visitor']['email'], "status_if_new": "subscribed" if not config['double_opt_in'] else "pending", "merge_fields": merge_fields, "tags": ["pure-chat", data.get('agent_notes', '').lower().replace(' ', '-')] )
subscriber_hash = hashlib.md5(data['visitor']['email'].lower().encode()).hexdigest() pure chat mailchimp integration
This feature allows you to connect chat conversations (or captured leads from Pure Chat) directly to Mailchimp lists/tags for automated email marketing. Goal: Automatically add chat users (who provide email/name) to a Mailchimp audience when a chat ends, or after a custom trigger (e.g., agent tags the chat as "lead"). resp = requests
Authorization: Bearer YOUR_ACCESS_TOKEN Content-Type: application/json headers="Authorization": f"Bearer config['access_token']"