Get started with UiPath Studio Web - Generative AI activities

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!

This was mentioned as something someone did on their own before, but I think, like other training modules I have done here, there should be an option to do this via Google Workspaces alongside Outlook/SharePoint. In many of the other training modules I’ve worked on for UiPath, there is a pathway for both options, and it was difficult for me to run through the exercises in this module because I am blocked by my org’s group policy from making the necessary connections to do this via Outlook. I can, however, use an alternative Google account to run through the exercise.

Please consider offering the choice to do the exercises with both options in as many areas as is possible. Thanks!