Botpress unable to run JavaScript code
# 🤝help
a
Please for some reason, botpress is unable to run Bland AI API JavaScript code. This problem has really lingered my project and I'm not getting a good experience so far.
PLEASE, I really need help with this issue, botpress is unable to call bland AI JavaScript API code, this is a big issue to me.
Thanks but this issue is still troubling me
q
Thank you so much for this idea @ancient-author-26489 🫡 💥 🛠️ I quickly tried it, and it called from Botpress chatbot to my phone number and asked what it was instructed to do (so basically it was asking where john doe's missing luggages are).
Copy code
js
// Headers
const headers = {
  authorization: "YOUR-BLAND-AI-API-KEY",
};

// Data
const data = {
  phone_number: "YOUR-PHONE-NUMBER", // ADD PLUS SIGN AND COUNTRY CODE LIKE THIS +372...
  task: "You are calling Fantastic Airlines on behalf of John Doe. Find out where John's lost luggages are.",
  voice_id: 0,
  request_data: {
    calling: "Fantastic Airlines",
    bag_claim: "69683",
    airline_code: "UA123",
  },
  reduce_latency: true,
  amd: true
}

// API request
await axios.post("https://api.bland.ai/call", data, { headers });
From now on, if we are both busy, you can tell your AI to call my AI using Botpress 😂 💎. They'll sort everything out.
Bland API is free to try 🔥 If others test this also, let us know if it works 🛠️ 🙏
I tried to a phone number with 11 digits after the + sign, including the country code, and it works
c
Oh wow haha this image from bland.ai is almost the same as my custom created desktop screensaver
it seems like a useful service but Im wondering if its possible to upload knowledge basis per client
that wasnt possible yet for the Bubble powered one that I got offered to work with
3 Views