BuildShip Logo
BuildShip Community

OpenAI Assistant (Stream Response)

Add different script nodes and let the AI Assistant automatically choose which to execute based on the input. The node returns a streamed text response (meant to be returned back to the client) and the thread ID (to track the conversation). --- If you plan on sending this stream back to the client as the response, you may want to consider adding a **Set Response Header** node following this node (and before the return node) with the key set to `content-type` and the value set to `text/plain`, to make it easier for the client to figure out how to handle the stream.

3885

Report this node

Select the reason for reporting

Describe the issue in detail

Share node

Link to node

https://templates.buildship.com/node/buildship_openai-assistant-node-stream-response/

Inputs

Assistant ID

********

Instructions

User Prompt

Stream Content Form

Thread ID

Built-in Tools

Editor
This is a static example using sample inputs. Copy the node and paste it into your BuildShip flow to run it with your own values.