I'm currently trying to use lightning:conversationAgentSend,


It said that "This method intercepts the message before it’s sent to the chat visitor." But so far this works when the message is already published in the chat widget.

I'm also having an issue using sendMessage method in the event lightning:conversationAgentSend. For example

Component code: event="lightning:conversationAgentSend" action="{! c.onAgentSend}"

Controller code: onAgentSend: function(cmp, evt, helper) { var recordId = evt.getParam("recordId"); conversationKit.sendMessage({'recordId': recordId, 'message': 'Testing Testing'}); }

I have an infinite loop, calling the onAgentSend and posting the message multiple times

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.