...
Custom delays and timers that are beyond the current Start Timer action functionality
Identifying the dates of the next X working days, and storing the output in variables so you can present them as quick reply options for the customer in a ‘Send Autoresponse’ action
Converting the result of an HTTP request into an array (list) of variables that you can then use in your flow
And more! Here’s an example JS action you might use to extract the individual fields from a QA action output, ready to use in your flow (to update data fields or make decisions etc.)
Code Block |
---|
//Parse and log output
const quality = JSON.parse(context.GetObjectJson("Quality.Output"));
context.Log(JSON.stringify(quality));
//Set values as contexts
context.Set("Var.Overall", quality.Overall);
context.Set("Var.Rating", quality.Rating);
context.Set("Var.Escalate", quality.Escalate);
context.Set("Var.Confidence", quality.Confidence);
context.Set("Var.Explanation", quality.Explanation);
context.Set("Var.SolutionFound", quality.Detailed.Solution.Found);
context.Set("Var.EmpathyFound", quality.Detailed.Empathy.Found);
context.Set("Var.IntroductionFound", quality.Detailed.Introduction.Found);
context.Set("Var.Tone", quality.Detailed.Tone);
context.Set("Var.Spelling", quality.Detailed.Spelling);
context.Set("Var.Grammar", quality.Detailed.Grammar);
context.Set("Var.Punctuation", quality.Detailed.Punctuation); |
And more! Check here for some examples and guidance: JavaScript Examples
Keyword Filter
...