Agent connection to webchat through API

Hi. I just have a quick question about webchat.

I followed this sample, https://developer.mypurecloud.com/api/webchat/

and seems to work fine on customer side.

And then I wanted

Agent connect to the alerting webchat through API, so

I tried to change the state of interacting agent from "alerting" to "connected" through Purecloud API

when notification of v2.users.{agentid}.conversations.chats is received.

I used [PATCH /api/v2/conversations/chats/{conversationId}/participants/{participantId}]

with body containing "state" : "connected", and I got 202 response.

However, it doesn't seem agent is connected to the chat.

Can you confirm this if this is the right approach?

Thanks,

Yohan

Yes, that's correct. Be sure you're using the correct participant id for the agent when making that request. Once you've verified, please open a case with PureCloud care to report the issue. If you're making the request with the correct IDs, the issue is something internal to PureCloud and cannot be investigated via the forum.

Thanks for all your help every time and for your confirmation.

I will try to work through.

Thanks again. Hope you have a great day.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.