Agent Run Activity

I am having trouble with the input argument for “run agent” activity in studio desktop.

In my published agent I have an input variable as “Business_Name” and in the activity in studio, I have to input an argument. the argument is comming from Business Name = a string from an excel file. I keep getting an error. that shows below:

Steps:

  1. Studio: Input Argument is Business name which is coming from an excel file for an address that I want to pass to the agent.

  1. Below is where the input argument is in the agent that i published:

Can you help in what I should put here in Input argument.
I have tried the Json format and static value but doesnt work:
New With { .InputNameInAgent = BusinessNameVariable}

@Anil_G can you help please

Are you able to join a teams call, I would appreciate it.

@ashton.lalchan

  1. You should click on arguments that you see on right top in screenshot and add the argument name
  2. the input should be in argument name and the actual variable format

cheers

@Anil_G that argument is already there in the agent that was published:

@ashton.lalchan

can you show run agent input argument screenshot please

also did you run the agent was it giving right response?

cheers

@Anil_G yes it ran:

@ashton.lalchan

what about this

cheers

Here is the Input argument:

@ashton.lalchan

Input looks proper ..did you hopen to try with clicking on plus and then select static names and give the values as dictionary

Or create a dictionary using

c31.Dict("Business_Name") = Business_Name

And pass the doct as input arguments

Ideally if that was an issue you would have got an error but returning null might be because of the values as well

cheers

@Anil_G
yes I have tried static values but it still gives Null.

@ashton.lalchan

Can you please have an output schema defined as well in agent

Cheers

@Anil_G
I already have that. Everything was defined before publishing

@ashton.lalchan

Everything looks correct

Can you go to locals panel and check the values passed to the activity directly

It would display current and previous activities

Cheers