Invoke the Conversation History API
Before you begin, you must Configure an Enhanced Web Chat Deployment.
-
Add the developer name of the connected app you created in Create a Connected App to the MessagingChannel Metadata Configuration.
1<embeddedConfig> 2 <authMode>Auth</authMode> 3 <isAttachmentUploadEnabled>true</isAttachmentUploadEnabled> 4 <isSaveTranscriptEnabled>false</isSaveTranscriptEnabled> 5 <isEstimatedWaitTimeEnabled>false</isEstimatedWaitTimeEnabled> 6 <verifiedUserJwtExpirationTime>360</verifiedUserJwtExpirationTime> 7 **<connectedApp>ConnectedApp_Developer_name</connectedApp>** 8 <messagingAuthorizations> 9 <authorizationType>PublicKeyCertificateSet</authorizationType> 10 <authProviderName></authProviderName> 11 <publicKeyCertificateSetName>pcks1</publicKeyCertificateSetName> 12 <enabled>false</enabled> 13 <authIdentifier>auth_identifier_one</authIdentifier> 14 </messagingAuthorizations> 15 </embeddedConfig> -
Use the connected app you created in Create a Connected App to invoke the Conversation History API.
- In the
AuthorizationContextAPI header, provide thedeveloperNameof the ConnectedApp configured above and set theAuthorizationContextTypeheader value toEmbeddedMessagingChannel. - In the
conversationParticipants.participantparameter, when theroleisEndUser, set theappTypetoiamessage.
- In the
See Also
- Interaction Service API: Send Historical Conversation Entries
- GitHub: Interaction Service APIs