When you view a completed Chatbot<>Visitor conversation in the conversation UI, we see the AI/Visitor messages differentiated by being bolded or not.
While the HTML version of the message accessible via the API does contain the same bolding, who sent those messages is still up for interpretation (and HTML parsing based on styles is required to determine who send the message)
Could Front expose a 'turn-based' chatbot conversation via the API for these transcripts? Ideally showing all events, such as routing, system events (tags, custom attributes, etc), and messages with attribution.
For example;
{
"messages": [
{"actor": "chatbot", "text": "Hi, how can we help?"},
{"actor": "visitor", "text": null, "option": "Talk to sales", "picklistOptions": ["Talk to sales", "Talk to support"]},
{"actor": "system", "action": {"type": "add_tag", "tag_ids": ["tag_123"]}},
{"actor": "chatbot", "text": "Sure thing! Connecting your now"},
{"actor": "visitor", "text": "I need to talk about my upcoming renewal"},
]
}