Hi is there a way to retrieve a list of all active conversation_ids?
GET /conversations
This will get all conversations.
As for active conversations, there is no way to know that I know of.
2 Likes
Thank you, but is there way to get such a list from rasa and not rasa x? The rasa REST API doesn’t list such an endpoint: https://rasa.com/docs/rasa/pages/http-api
1 Like
You can also query the tracker store. In MySQL:
SELECT DISTINCT sender_id from tracker_store
And for a loose definition of “active conversations”, you can check if the timestamp is less than, e.g., 5 minutes ago. In Python:
now = int(time.time()) # Current timestamp
recent = now - (5 * 60) # Timestamp 5 minutes ago
sql = f"SELECT DISTINCT sender_id FROM tracker_store WHERE timestamp > {recent}"
conversations = database.query(sql)
2 Likes