1 回答
- 最新
- 投票最多
- 评论最多
0
Hi,
your request is rejected since you're passing the participant token on your send-message operation instead of the connection token.
You can come around by changing the connection type like this:
aws connect start-chat-contact --instance-id XXX --contact-flow-id YYY --participant-details DisplayName=ZZZ
// Returns participantToken
aws connectparticipant create-participant-connection --type CONNECTION_CREDENTIALS --participant-token <participantToken>
// Returns connectionToken
aws connectparticipant send-message --content-type text/plain --content hi --connection-token <connectionToken>
/* Returns MessageId and timestamp e.g.:
{
"Id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
"AbsoluteTime": "2022-10-26T07:03:19.534Z"
}
*/
已回答 2 年前
相关内容
- AWS 官方已更新 2 年前
thanks. this got me to the point shown but the hi message did not come through to the agent and the event log did not show the hi. Missing another step it looks like