Botpress x Langflow integration
# 🤝help
a
Hello community, I am currently developing LLM bots with Botpress and am curious if anyone has managed to integrate a langflow application into botpress? If so, what is the general outline of the process? Thanks! Langflow is like Flowise or StackAI, but is native to Python.
a
Hey @aloof-wire-89590, not sure about Langflow but we've got a tutorial on stack ai here https://discord.com/channels/1108396290624213082/1129391709973913750/1129391709973913750
a
Hello, Gordy, thank you for your prompt answer! I have seen videos on StackAI and Flowise, but the process of connecting Langflow is slightly different. Langflow provide a python coded API, that needs to be inserted in botpress, but I am unsure if such an API code is connectable to Botpress. In Flowise, the connection is relatively similar, with the difference of the API code being written in JavaScript. In Botpress, the connection is made through an Execute code card. Will such a card understand Python code and connect the programs properly? Thank you!
a
Nope, the executre code card only runs JS, not python. However you can still make API calls from JS, as that's the only way to connect Botpress to external services. If you need to import a package or use a third-party library though, you're out of luck as the Execute Code card can't do imports.
a
Langflow has an api, so you can connect with it. The example code is in Python, but you can use any language you want to, including javascript. I would take the example code from langflow (python) and put it into chatgpt and ask it to convert it to javascript. It should be usable then.
a
Thank you kindly! I will do that 🙂
5 Views