https://discord.gg/botpress logo
Proper way or Best Method to capture multiple piec...
# 🤝help
q
I want to request and collect: First name Last name Email Phone State Zipcode Do I need a capture card for each? or is there a better way?
p
You can instruct an autonomous node to ask for and store the above information. If you do would prefer to use standard nodes then yes the appropriate method is using capture information cards. Hope this helps!
q
@prehistoric-airplane-85682 An autonomous node was wonderful all by itself. I thought I had to transition to standard node and add capture cards. Could you guide me or provide a howto? store the info and then dump into Google sheets.
p
To store the information you should create workflow variables and enable +r +w (read and write) in the Autonomous Node as well as prompt it accordingly. To store the info in a google sheets you could use the google sheets integration cards or make an action that calls the google sheets api. Happy Bot Building!
q
Thank you @prehistoric-airplane-85682 for your assistance, I am slowly figuring it out. Question on Botpress variables. When I use {{workflow.userZipcode}} number , Everything works, zip code field is populated, but I get an ERROR. If I use {{workflow.userzipCode}} String, zip code field does not populate, but I also get no error messages? Is there a way to delete or remove a variable that is no longer being used within a workflow?
p
To delete the variable, right/double click on them in the studio's variable area. About the zipcode variable's format, could you share your AN's prompt and setup?
q
@prehistoric-airplane-85682 Thank you so much for your assistance, I did not know there was a variable area, but I found 2, one in the library and also under the integrations tab. issue I am currently experiencing is Sometimes the zipcode field populates and sometimes it does not? not sure why. Is the Autonomous node using some abstract variable? Should be using Workflow.userzipCode (x) string. Picture attached for clarity. https://cdn.discordapp.com/attachments/1399269526406955119/1400545672121421905/Botpresserrorzip5.PNG?ex=688d074d&is=688bb5cd&hm=dd19efc1ede902f1b26437e50fdca2c7f980bccaef2e1dcd33a7b59acf2ba2b1&
I switched gears, Everything working now 😉... I had watched one of Robert's (aka Perfect hair) videos. Using autonomous node, I thought I had to transition to a standard node to capture and send data to web hook. Today I discovered Autonomous node, plus adding exit node through a sub workflow and everything just clicked.
p
That's awesome, I'm glad you learned something and were able to fix your issue thanks to it!