Okay, I built my automation but I get a response that I dont understand. What did i do wrong here?
And this is the error message I get:
Okay, I built my automation but I get a response that I dont understand. What did i do wrong here?
And this is the error message I get:
Hi Bob,
Thanks for reaching out and the link/screenshot. The reason this error is showing up in your playbook when you try to run it is that for one of your âGet answer to the question commandsâ in the playbook, the text coming from the scraper which you provided to the user is coming out empty. Iâve made a playbook for you below with the proper logic for what you are looking for in your use case. Iâve left the last step empty so that you can go in and configure the âadd to google sheetâ action as needed on your end. I hope this helps!
Cheers,
Omansh
Customer Support - bardeen.ai
Knowledge Base https://www.bardeen.ai/tutorials
Explore | @bardeenai | Bardeen Community
Hey Omansh, thanks, this is great! So I had to add this step? Or did you change more?
two questions:
Is this step necessary, because I need tell Bardeen to run the next steps on each element on the list that was retrieved?
I didnt I had to do this in previous automations. Is this also necessary when running it in teh background? Is that the difference perhaps?
Hi Bob,
The loop command in the playbook is necessary because it helps us to iterate over every single element on the scraped list one by one and perform the necessary tasks required with that information. It just overall makes the logic far easier to understand in the playbook and makes sure that the OpenAI queries are successfully ran for every single link. Iâve added a quick âhow toâ on loops so you can get more familiar with them. Additionally, I changed the second scraping you were doing to âscrape data in the backgroundâ. This is because you are essentially opening the link from the first scraper in the âbackgroundâ of your laptop and extracting that information. I hope this helps!
Hereâs how you can set up a loop in Bardeen https://www.loom.com/share/2853363c854a40bfbd51a698b966431e
Cheers,
Omansh
Customer Support - bardeen.ai
Knowledge Base https://www.bardeen.ai/tutorials
Explore | @bardeenai | Bardeen Community
thanks Omansh, sorry for keeping you busy all day with my bombardment of questions :-P. Appreciate the clear answers. Getting better at it by the minute.
Hi Omansh,
Okay, im back with a followup question. Why dont I need a âFor Each Elementâ for this sequence of automations? Just trying to understand what the difference is.
Love to learn more!
âBob
Hi @Bob ,
Indeed if thereâs a table or a list as the source of data, Bardeen will recognize and iterate every item automatically, in other words it will âfor eachâ them out of the box. But this means it will just send every row or list item further without looking whatâs inside. This would work flawlessly if you would need to add scraped data to a google sheet which does not mind an empty cell.
Using a loop as advised by my colleague, you can target a specific element of a row and make the automation process it with a rule âfor each item that existsâ. This also solves the error you were getting previously.
Not related, but here is another use case. Assume you have scraped a table and you need to email it to yourself. Bardeen will iterate every row of that table, add it to the email content and send one email. But, letâs say, one column of that table is the list of recipients. In that case you can add a loop to target that list saying send email to every recipient of column x. So with âfor eachâ in this case you send as many emails as there are recipients in column x.
I hope this helps!
Victoria,
Customer Support - bardeen.ai
Explore | @bardeenai | Bardeen Community
Thanks for the response. This is really helpful.