-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] [Directline] Correlate messages sent by the app #1201
Comments
I've experimented that issuing a |
I've checked that |
Hi @jmendiara and @palmerabollo, we reassign IDs within the service, so that's not going to be a field you can use. ChannelData is indeed your best option. |
Thanks @dandriscoll! A documentation update on the web site clarifying DirectLine API payload meaning and would be much appreciated. |
We've got a raft of documentation coming for the next release. I may patch up the old docs too a bit later. |
Is there a way to correlate messages sent from the app with those managed by directline?
I want to implement this use case (think in Whatsapp UI)
POLLING
request (GET /api/conversations/XYZ/messages
)hello
in my apphello
in the conversation list with status:Unsent ( -- -- )
SEND
request (POST /api/conversations/XYZ/messages
), and before the request ends...POLLING
request returns me thehello
messageSent ( ✓ -- )
SEND
request completes, meaning thehello
message has been delivered to the bot (not sure about that!)Received ( ✓ ✓ )
In the DirectLine API Docs for Sending a message (the
SEND
request in the use case) you sayid (string, optional): ID for this message
, but when the message is returned by thePOLLING
request, the payloadid
is not the same I specified earlier in theSEND
requestex:
Not being able to correlate the app messages with the directline messages close us other use cases, like retries for failed messages in the app side, logging...
How can we achieve message correlation?
cc:\ @dandriscoll
The text was updated successfully, but these errors were encountered: