Problem with Retrieving Full Conversation Messages via API
TLDR noez_ inquired about ways to obtain all messages in a conversation for transcription. sojan_official explained that the API uses pagination to limit results to 20 messages at a time, and they discussed potential improvements to the system.
Jul 25, 2022 (17 months ago)
noez_
10:29 AM1. the webhook that informs about the status change of a conversation only provides the last message.
2. /api/v1/accounts/X/conversations/X also returns only the last message, although the documentation explicitly says "with all messages in the conversation".
3. /api/v1/accounts/X/conversations/X/messages also says "List all messages of a conversation" but it shows a maximum of 20 messages.
sojan_official
03:15 PMbefore
which accepts a message idnoez_
07:51 PMJul 26, 2022 (17 months ago)
sojan_official
09:25 AMand the current API was build for the Chatwoot conversation UI , where we fetch additional messages on scroll.
Jul 29, 2022 (17 months ago)
noez_
11:00 AMChatwoot
Indexed 2221 threads (46% resolved)
Similar Threads
Retrieving More Than 20 Messages from API Call
maobueno asked how to retrieve more than 20 messages from an API call. sojan_official suggested providing an `after_id` parameter to return 100 and mentioned possible future support for a limit parameter.
Integrating Telegram bot with Chatwoot Through API
eveneasy tries to integrate telegram bot with Chatwoot through API but struggles with parameters. lourenco9597 guides them on creating intermediary API using chatwoot config details and API channel conversation.
Automatically Starting a Conversation with Chat Widget
thinness2722 wants to create an auto-start chat conversation when the widget is opened. sojan_official suggests using webhooks. thinness2722 encounters a "continue conversation" issue and is awaiting a fix on GitHub issue #7217.