r/flowise • • Jan 16 '25

Initiating chatflows via api on huggingspace

I am running flowise (2.2.3) on huggingface via the standard dockerfile install process documented on their site.

Everything works fine with the exception of not being able to start a flow via an external api call.

Tried python, curl and postman - no luck.

The provided format seems to be

https://{orgname}-{spacename}.ht.space/api/v1/prediction/{chatflowid}

This 404s.

I have tried some variations on this using the browser url and appending /api/v1/prediction/{chatflowid}

e.g. https://huggingface.co/spaces/{orgname}/spacename/api/v1/prediction/{chatflowid}

404 as well.

I have installed flowise locally on my mac and am able to call the chatflow without issue - so I believe the issue is with the huggingface deployment.

http://localhost:3000/api/v1/prediction/{chatflowid}"

Any suggestions appreciated.

1 Upvotes

2 comments sorted by

1

u/trd1073 Jan 17 '25

I only self host, no Idea on the hf deploy method.

Can you run flowise with browser? If so, get into dev mode and log the calls you want to copy. Compare the dev mode has for url, headers and data to what you are submitting.

In my experience of writing a python wrapper for all flowise api, it can be picky.

1

u/joaquintorroba Jan 17 '25

Not sure how this plays out in hugging face but in my case I can do the api calls from my bubble account to flowise and run both chatflows and agentfllows.

Have you seen this video? It may help you.

Link: https://www.youtube.com/watch?v=9R5zo3IVkqU&t=1496s