0
votes

I am using this link as a reference to load test my bot. There are two channels configured - DirectLine & WebChat. I am able to get the access_token and send it in subsequent messages, but the issue is the messages are not flowing as part of single conversation. I am sending the messages like an actual user would send.

example:-

Bot: Are you looking for apparels?

User: Yes

Bot: Men, Kids or Women?

User: Men

etc. All the user's messages are going a new messages and the BOT code is not able to keep any reference.

I am sending messages to endpoint url - https://xyz/api/messages but when I try to use /v3/conversations/{conversationId}/activities/{activityId} then it gives resource not found error.

The main objective is to load test the webchat bot by sending messages like an actual user would do. I think there may be configuration missing but let know if any further information is required.

1

1 Answers

0
votes

The API you are using is actually the DirectLine to the bot, not Web Chat. Since you want to emulate the client (Web Chat), the API you actually want to use is detailed in the REST-API docs for get-activities.

GET /v3/directline/conversations/{conversationId}/activities?watermark={watermark_value}