https://discord.gg/botpress logo
Hey! Just tried but it doesn't work
# 🌎general
s
Hey! Just tried but it doesn't work
f
does it still return the json?
s
it does
f
can you try adding a second card that takes the input from the previous AI task with the prompt, "convert this to valid markdown string"
s
what card type should I use?
Im new sorry if I ask dumb questions
f
AI task
Hey, no problem. No question is a dumb question.
Let me know if it works
s
How do I make the AI task grab the input from the previous one?
f
You need to store in a variable, and in the inputs for the next card you need to reference that variable
Can you share a screenshot of your AI task?

https://www.youtube.com/watch?v=diEWIyPN6vg&list=PLlJHGGklthGlUVZlNhG5I0ZK8u1h6UfZ9▾

You could also go through this quick playlist
s
Here is the first ai task, the one that's supposed to recommend countries and cities based on past captured information
It's all in spanish
Here's what I tried to do based on what you told me but I think ive done it wrong
watched a tutorial on a similar bot and it recommended to save the first ai task's variable as an array
f
Well if you intend on using the recommended countries later in the workflow, you'd want to save them as an array
that's why it's better to have two cards
s
ok, then i'll keep them as an array
but the thing is these cities show up in a code-like type of message
as I showed in #1108396291060408352
Please answer as soon as you can, i'd really appreciate it
f
Hey, sorry I was testing something on my end
s
No problem
answer only when you can, I wouldn't like to bother
f
So here's a prompt that worked in this case
Please note that the description of the variable carries a lot of weight, and will help the model answer more precisely
I have two ai task cards
Here's the config for the first one
s
The recommendedcities variable is a string?
it worked!!!!!
thank you very muchhh
I've been struggling with this for the past few days
f
Awesome. Let me know if you need any more help
s
Ok!
Thank you very very much
❤️
6 Views