Neel
Neel3w ago

Adding Variables to Agent

How do I add new variables to the Agent when I get to this screen?
No description
39 Replies
Braden
Braden3w ago
you have variables there - you just need to create them using variable creation. basically when you do {name}, it will ask you to select an existing variable, or create one.
Neel
NeelOP3w ago
so the variables are defined but when I try to run the whole model the Agent isn't able to retrieve the data, even though I made the get call earlier to retrieve it and send all that data into listings_json
No description
Braden
Braden3w ago
can you show the agents log @Neel when you are debugging it
Neel
NeelOP3w ago
I actually just ran out of credits so can't run it again I'm down to get the plan but wanted to see if this would work first before that
Braden
Braden3w ago
the 500 credits?
Neel
NeelOP3w ago
the free trial
Braden
Braden3w ago
ah got it
Neel
NeelOP3w ago
if its possible to open it up once more just to try this out then I was thinking of purchasing the monthly plan if it works.
Braden
Braden3w ago
yeah sorry our pricing atm not super flexible
Neel
NeelOP3w ago
ok ill get the monthly plan and run it again
Braden
Braden3w ago
sorry, if it doesn't work just email me at braden@voiceflow.com and can refund. our pricing needs to be more flexible here, we're working on it
Neel
NeelOP3w ago
thank you
Neel
NeelOP3w ago
No description
Neel
NeelOP3w ago
those are the logs, you could see the output in the body i mapped to listings_json, and here the Agent says "currently no active listings at the moment"
Braden
Braden3w ago
where's the api call here? not seeing the api actually being called
Neel
NeelOP3w ago
oh its right before the 3 buttons, didn't get shown in screenshot logs
Neel
NeelOP3w ago
No description
Neel
NeelOP3w ago
i can't run it again even after paying, it says i somehow used up my available credits already
Braden
Braden3w ago
yeah this is a bug that got introduced this AM - can you please email me and we'll get that fixed for you. Sorry, there's a bug that if you get downgraded first to free, then back to pro, it doesn't grant the credits. We're actively working on it can you email me at braden@voiceflow.com with your account email, I'll get this fixed for you right away.
Neel
NeelOP3w ago
yes thank you
Braden
Braden3w ago
np - sorry about this. Been a pain of a bug the past 2 hrs
Neel
NeelOP3w ago
just sent you email
Braden
Braden3w ago
ty
Neel
NeelOP3w ago
let me know whenever
Braden
Braden3w ago
didn't get email you sent to braden@voiceflow.com? nvm, went to spam
Neel
NeelOP3w ago
No description
Braden
Braden3w ago
why not use an agent? and give it the api tool
Neel
NeelOP3w ago
i was using the API tool to fetch the data from a CSV which i published to web, then loaded that data into variable called {listings_json}, now if I call that in the Agent it should work right
Braden
Braden3w ago
create an agent, and give it the API tool
Neel
NeelOP3w ago
im confused, isn't that exactly what I did, i created API tool and sent that to Agent which i created i tried directly connecting and still won't work
Braden
Braden3w ago
No you need to add it into the agent
Braden
Braden3w ago
No description
Neel
NeelOP3w ago
ohh I see
Braden
Braden3w ago
so in the agent, you can give it the api tool the agent will then choose to call it, and get the data back
Neel
NeelOP3w ago
so remove the GET call from outside but add the same thing within the agent itself right
Braden
Braden3w ago
yes, add the api tool - you should see it there already @Neel
Neel
NeelOP3w ago
yes it worked! thanks for helping out! just had 1 last question if you don't mind, I wanted to use a capture block to store a value the user inputs, but having trouble setting that user output to a new variable as here it doesn't give me that option, i already created a entity for that
No description
Braden
Braden3w ago
you don't need the capture step 🙂 just use the agent and an exit condition that has a required variable glad it hear it worked! @Neel
Neel
NeelOP3w ago
Perfect thank you!

Did you find this page helpful?