Variable Problems

When I build the trackChanges AI following the Building AI Workers in MindStudio (1-hour course) video, I have problem with currentContent and global.prevContent variables. Can someone show me how to generate them correctly.

Hi @KimSa,

Thanks for the post!

You can save data to a Global Variable by taking the following steps:

  1. Add a Display Content block
  2. Reference the variable with the data you want to save in the Message field
  3. Set the Output Behavior to “Save to variable”
  4. Enter the global variable using this format: global.yourVariable

Here’s a sample Agent you can remix that shows how this works:
https://app.mindstudio.ai/agents/detect-website-changes-basic-e03f83e4/remix

Hope this helps!