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?
Page 1 / 1
Hey Jacques here from Intercom Support. I hope all is well today!
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!
thank you, I have already implemented this
Reply
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.