Invalid variable name error/ Failing to render image

  1. What happens: Followed the step by step on the video “Build Your First AI Agent in MINUTES”. This was to edit an image. Unfortunately, when I go to run the prompt, it is giving me an error saying the variable name is not valid. The {{change description}} variable popped up as an option so I had selected that. However, I went back in and removed the space as it looks like that may have been the issue but when I republish, it is still not working. I used the debugger to try and resolve it that way and used the suggested edit, that also did not work and produces the same error, despite me republishing and everything looking (as far as I can see) the same in the video. It continues to say “Processing” and does not ever process the image.
  2. Describe the intended behavior: the intended behavior is for the agent to generate an image
  3. link to AI Agent where this bug occurs: https://app.mindstudio.ai/agents/profile-picture-transformer-21095a98/run/ea1f6cce-1952-400c-a50d-668ad47ede5d

Hi @suzanne,

Thanks for the post!

Could you share a remix link to your agent? That’ll let me create a copy in my workspace to review the setup.
You can find the remix link by following these steps:

  1. Click the agent name
  2. Go to Remixing
  3. Make sure it’s enabled and click Copy Remix Link

Please publish the agent before sharing the remix link so I can copy the latest version.

Looking forward to your reply.

Thank you so much for the reply! Here is the Remix link: https://app.mindstudio.ai/agents/profile-picture-transformer-21095a98/remix

Thanks for the link!

It looks like the Custom Interface is causing this issue. You’ve updated the User Input variable, but the code in the Custom Interface of the User Input block stayed the same.

Here’s how you can fix this:

  1. Open the Interface Designer in the User Input block

  2. Paste the prompt below:
    Please update the user input variables to {{refimg}} and {{ChangeDescription}} in code

  3. Once the code is updated, click Compile, and then Publish the Agent

Let me know how it goes!