Video není dostupné.
Omlouváme se.
How to Integrate Botpress Chatbots with Stack AI
Vložit
- čas přidán 15. 08. 2024
- In today's Botpress tutorial, I show how I get the best possible answers from my chatbots. What I do is integrate the software, StackAI, to take care of the questions. Here's the deal, StackAI is superior in handling prompts and Botpress is the best at designing conversations. As a developer, why wouldn't you combine the two best software to create an even better product?! Well, my friend, that is what I am going to show you all today.
Code that I used in this video:
const endpoint = "Your StackAI link"
const headers = {
Authorization: `Bearer XXXXXXXXXX`,
"Content-Type": "application/json"
}
const data = {
"in-0": workflow.question,
}
try {
const response = await axios.post(endpoint, data, { headers })
workflow.stackai = response.data["out-0"]
} catch (error) {
throw new Error(`stack-error: ${error}`)
🌟 Key Takeaways:
Showcasing a simple chatbot that is missing the feature of answering questions. It contains a "raw input" card where the user can ask their question which is later stored within the "workflow.question" variable.
Setting up the basic StackAI integration with an "Execute code" card. Copy and paste prompts from StackAI to the code in Botpress.
📬 Contact Us:
Ready to take your business to the next level with a customized chatbot? Reach out to us for personalized bot development services!
Sign up to ChatDash using my affiliate link: bit.ly/3UR9alp
❗Join my Discord server for bot-builders: / discord
🙋 Check out my channel for more Botpress-related content such as guides, walkthroughs, etc!
Chapters:
0:00 Intro
0:48 Botpress Preparations
2:10 StackAI
3:54 Testing
4:22 Ending...
🚀 Ready to transform your chatbot game? Hit play and embark on a journey of discovery! 🌐
💬 #chatbotdevelopment #nocode #coding #botpress #techinnovation #aiaa
love the content my man, keep on going. Tip: RelevanceAI is about 4x cheaper so it might be a cool video to compare their capabilities.
Thanks bro! I will look at it 👀
Excellent! Very helpful.
Thank you so much!
it takes too long time to get the POST response, do you know how to use steam style like typewriter to get the response?
I have never done anything like that sorry
Hey man are you open to collaboration? Where can I send you business inquiries?
Yes absolutely! Join my discord server and send me a DM
hey man, i am having the reply as "undefined" from the bot. IDK how to tackle this error
What I believe is that you have either, not uploaded your KB correctly or that the variable which sends the message or recieves the message from Stack AI are incorrectly built.
Did you solve it?
hi thanq for the video, but im getting undefined as output, Pl.. help im struck
Join my discord and send me a DM
Did you solve it?
"Hello my brother, I've applied everything you explained in this video but when I know on the emulator it responds undefined. Please help me, I'm really stuck here."
Hey bro! Join my discord and send me a DM ;)
Hey konsolon, do you know how to solve "undefined" now? I'm also struggling for the past 2 days.if so, pls reply to this msg😢😢😢
@@suriyakharthikh1744 hi, did you find an answer?
Did you solve it?