1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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"
}
*/
répondu il y a 2 ans
Contenus pertinents
- demandé il y a un an
- Réponse acceptéedemandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 6 mois
- AWS OFFICIELA mis à jour il y a 2 ans
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