Calling an AgentKit Workflow via API -- Possible?

Hello,

I am sorry if this has already been asked, my search didn’t find what I was looking for and also if this is confirmed in the documentation somewhere, I wasn’t able to find it.

I wanted to check that currently with Agent Builder / Agent Kit that once I have created and published a workflow, is the only way to invoke this via realtime chat (or ChatKit) or can I interact with the workflow via API to push a payload and wait on a response?

I am looking to build workflows but instead of using a chat-based interaction, invoke them via API where I can send the Workflow a payload (as the ‘start’) and wait for a response after completing the workflow. Is this possible today or on the roadmap?

Thanks,

5 Likes

UP guys, I have the same problem, nobody has an hint?

I am trying to integrate this apis:

Workflows

NoneRead

/v1/dashboard/workflows

/v1/dashboard/workflows/{workflow_id}

/v1/dashboard/workflows/{workflow_id}/versions

/v1/dashboard/workflows/{workflow_id}/versions/{version_id}

/v1/dashboard/workflows/{workflow_id}/secrets

/v1/dashboard/workflows/{workflow_id}/secrets/{secret_key}

/v1/workflows/{id}/run

/v1/workflows/{id}/runs/{run_id}/resume

I am always receiving 400 http errors…

Do you have any documentation or examples @OpenAI_Support please?

I’ve also been trying to call it the way you would with a prompt without success

1 Like

Thank you cpatron, did you received model required or workflow_id parameter not allowed in the body? Usually bad request errors (400) from the server?

Any updates on calling agent kit flow via API?

1 Like

https://community.openai.com/t/re-is-it-possible-to-render-custom-ui-in-chatkit/1364274/2?u=korsair

https://www.buildwithmatija.com/blog/chatkit-nextjs-integration

2 Likes

so it looks possible, but harder? Maybe it will evolve and mature overtime to better support an alternative to Chatkit?