1 Resposta
- Mais recentes
- Mais votos
- Mais comentários
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"
}
*/
respondido há 2 anos
Conteúdo relevante
- AWS OFICIALAtualizada há 2 anos
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