Skip to content

Instantly share code, notes, and snippets.

@looneym
Created April 3, 2017 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save looneym/f2e76d674f9d1fd9aa3b70cfb334d94e to your computer and use it in GitHub Desktop.
Save looneym/f2e76d674f9d1fd9aa3b70cfb334d94e to your computer and use it in GitHub Desktop.
How to create an admin initiated conversation in Intercom using the Python SDK
from intercom.client import Client
intercom = Client(personal_access_token='my_personal_access_token')
intercom.messages.create(**{
"message_type": "inapp",
"body": "What's up :)",
"from": {
"type": "admin",
"id": "1234"
},
"to": {
"type": "user",
"id": "5678"
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment