Dify.ai call agents functions

Hi, it seems like the typebot integration is just calling the chatbot on dify, but not the agent, am I right? If so, is there anything to take care of when connecting to dify via a custom http api or script?
6 Replies
Kilian S.
Kilian S.OP9mo ago
Another thing i cant get my head around, is how to get the conversation id, the module is creating automatically.
Baptiste
Baptiste9mo ago
I'm not sure what you mean by chatbot or agent, isn't it the same endpoint on dify? You provide the Conversation ID
Kilian S.
Kilian S.OP9mo ago
it isnt the same. chatbots allow blocking method. agents only streaming. chatbots are simple modal assistants while agents can "think" and solve complex tasks that didnt worked. it didnt accepted my conversation IDs. As of now. I call dify via the dify block, and then call dify after that, and get the most recent conversation Id of a given username.
Baptiste
Baptiste9mo ago
Agents should work with the Dify block Please provide a bug reproduction for me to fix the potential issue if any
Kilian S.
Kilian S.OP9mo ago
They do. But providing a conversation ID doesn’t work Dify doesn’t accept the random id from tb A workaround, is to get the most recent conversation id of a given username by a dify get http api A fix would be to understand what id style dify is accepting They do work yes. but not with all features. For example it would be great with we could safe all the Outputs the API generates, as Variables. Id also like to use its speech to text streaming. Can we call dify or other services and use streaming, in custom blocks? If so, how to diggest their outputs in textblocks?

Did you find this page helpful?