tall-sugar-91642
06/01/2023, 9:23 AMconst { data: results } = await axios.post(
'<https://google.serper.dev/search>',
{ q: event.preview },
{ headers: { 'X-API-KEY': 'c97772f5d170f2bf8be9b23f0e2b6f54a8275e47' } }
)
workflow.searchResults = ""
for (let organic of results.organic) {
workflow.searchResults += organic.snippet
}
workflow.searchResults = workflow.searchResults.slice(0, 4000)
Error:
Logs (3 items - 1 error)
Execute code "make a query to bing with event.preview as the question"
Error executing action "inline-ins-f415fa35c2.js" in flow:Main:node:Standard1 [SyntaxError, Invalid or unexpected token]
Entering workflow (flow:Error) [node:Entry] from (flow:Main) [node:Standard1]
Also I'm a bit confused because in the video he talks about connecting our bot with Bing's API, but the service he used thats is I assume “Google serper”, except I don't get the impression that it is the service they offer anyway, but anyway it's not a big deal because in the demonstration it works and for me it doesn't, so I still need to find a solution because even if it's not the official Bing API it's connected to, well, the Google query still works anyway, so any help would be appreciated.
Thanks 😄acceptable-kangaroo-64719
06/01/2023, 11:16 AMtall-sugar-91642
06/01/2023, 11:21 AMtall-sugar-91642
06/01/2023, 11:35 AMacceptable-kangaroo-64719
06/01/2023, 11:37 AMtall-sugar-91642
06/01/2023, 11:39 AMtall-sugar-91642
06/01/2023, 1:03 PMacceptable-kangaroo-64719
06/01/2023, 2:41 PM