Run Function

I followed the tutorial and tried to build my first agent, but I have some problems as

  1. Don’t find the community function button
  2. If I use the New button to insert the GoogleSearch_basic, I don’t find the configuration template to add the topic variable to the Search Query and add the google_result variable to the Output variable.
  3. I also get an error “Run function block doesn’t specify a function to execute”

Can someone show me how to do it? Please.

1 Like

Hey there,

Not sure which tutorial you saw, but here is a video on how to create your first AI Agent:

Also if you are interested in writing your own custom functions, here is a tutorial that should help you write your first function:

Lastly, if you are trying to perform a google search, we recommend using the Google Search Block built directly into MindStudio:

Hope this helps! :slight_smile:

Hi @KimSa can you link to the YT video you watched? We’ll get it sorted - thanks!

For what it’s worth to others who encounter same problems as me running python functions:

The ai object seems passed as a dictionary, and the way to interact with it is using keys like 'config' and 'vars', rather than the .getConfig() method mentioned in the documentation.

I.e. instead of the methods mentioned in the quick help, which I had trouble with, I successfully used this kind of syntax:

variable_name = ai["config"]["variableName"]
value = ai["config"]["integerValue"]
ai["vars"][variable_name] = int_value

FYI - the ai object:

Type of ai object: <class ‘dict’>
Attributes of ai: [‘class’, ‘class_getitem’, ‘contains’, ‘delattr’, ‘delitem’, ‘dir’, ‘doc’, ‘eq’, ‘format’, ‘ge’, ‘getattribute’, ‘getitem’, ‘getstate’, ‘gt’, ‘hash’, ‘init’, ‘init_subclass’, ‘ior’, ‘iter’, ‘le’, ‘len’, ‘lt’, ‘ne’, ‘new’, ‘or’, ‘reduce’, ‘reduce_ex’, ‘repr’, ‘reversed’, ‘ror’, ‘setattr’, ‘setitem’, ‘sizeof’, ‘str’, ‘subclasshook’, ‘clear’, ‘copy’, ‘fromkeys’, ‘get’, ‘items’, ‘keys’, ‘pop’, ‘popitem’, ‘setdefault’, ‘update’, ‘values’]

1 Like

Thank you very much. I just build the first AI following “How to Build Your First AI Agent in MINUTES

I can’t follow the instructions in “Getting Started With MindStudio (Manual)”.

Hi @KimSa, which step of the tutorial are you having trouble with?

I find the alternative one “Building AI Workers in MindStudio (1-hour course)”. And I pass the configuration step. But the email I get is not similar to yours (see the attached img).
Please, show me what I miss.

(attachments)

Hi @KimSa,

Could you share a Loom of your setup and walk through one of the runs in the Debugger? That would help us better understand what might be causing the issue.