Hi @francesco,
You need to clean up the output from the genAI summary output (the activity where you created a one shot summary of the email body).
To do this, add another activity jut below the content generation activity.
The activity name is “assign variable value”
You can name you new variable whatever makes sense to you.
Then for the value of the variable, input this code:
System.Text.RegularExpressions.Regex.Replace(
contentGeneration_1.text,
“[^\u0020-\u007E]”,
“”
).Replace(“”“”, “'”).Trim()
Just make sure you paste the above text in the VB Expression editor and NOT the “set value” area.
Remember to use the new variable moving forward for this exercise, instead of the old genAI summary variable.
Let me know if this works for you.
Cheers!
