We have many conversations in the backlog with a specific tag. We want to implement a simple Python script that uses an API to find and close these conversations. After closing them, the script should send a message to those chats to inform the users about the closure. How can this be implemented?
Answered
API, close conversation and text message about it
Best answer by Jacques Reynolds
Hey
You can use the Intercom REST API in your Python script to do this. Here’s how:
- First, you want to use the Search Conversations Endpoint to use retrieve all Conversations with the tag you’re looking for. You can pass in tag_ids as a parameter to retrieve all Conversation with a specific Tag.
- Next, to close those Conversation you can use the Manage a Conversation Endpoint. You can add an optional parameter in this API call to send a message to the User of that Conversation when you close it.
Hope this is clear!
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Join the Intercom Community 🎉
Already have an account? Login
Login to the community
No account yet? Create an account
Intercom Customers and Employees
Log in with SSOor
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.