1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
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 hace 4 años
Contenido relevante
preguntada hace un año
preguntada hace 9 meses
preguntada hace un año
preguntada hace 9 meses
- OFICIAL DE AWSActualizada hace un año

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
hi message did not come through to the agent, but after few seconds i can see a record in contact search. My contact flow is very basic and simple, agent as set working queue and transfer to queue.