hi,
Is it possible to automatically send an email at the end of a script being completed?
1. The scripts may contain different information and I would want to be able to include a configurable set of fields in the email which are set during the script.
2. The email may be sent to different distribution lists depending on what was set in the script (e.g. regional specific distributions where a region is selected during the script, and therefore a variable is set to with the relevant distribution list)
3. The email is then automatically generated with a subject which may be taken from a set of fields within the script
4. I am guessing this may be possible from an API, but how to actually invoke the API from within the script and would something like the below actually work to pull through variables from the script to the api? I can't get it to work...
5. Is it possible to auto send the email (when using the API directly in developer tools it generates the email to the advisor in their interactions but does not send, this is left to the advisors to manually complete the sending action)
{
"queueId": "xxxxxxxxxxxxx",
"flowId": "",
"provider": "PureCloud Email",
"skillIds": [],
"languageId": "",
"priority": 0,
"attributes": {},
"toAddress": "{{toaddressvariable}}",
"toName": "{{tonamevariable}}",
"fromAddress": "test@test.euw2.pure.cloud",
"fromName": "{{fromaddressvariable}}",
"subject": "[[variable 3]]",
"direction": "OUTBOUND",
"htmlBody": "",
"textBody": "[[Variable 1]][[variable 2]]"
}
#DigitalChannels#Implementation#SystemAdministration------------------------------
Mark Elliott
Lemon Business Solutions
------------------------------