hemax99#epic
hemax99#epic2w ago

How can I parse the response of the OpenAI Assistant response so that I could use specific data?

API calls allow me to use the response and the specific data I want with a format like Response.textData. How do I do this with OpenAI Assistant responses? I've tried using the response directly as "Response.textData", parsing the response through the JSON String node, but the data still doesn't come through. Any suggestions?
2 Replies
AI Support
AI Support2w ago
AI Support Bot Information
<@773726335700172821> you can react on the relevant answer (message) with a ✅ in this thread when you think it has been solved, by the bot or by a human! Anyone can react on this message with a ❌ if the GPT bot is unhelpful or hallucinating answers. Please note: Team members will review and answer the questions on best efforts basis.
AI Support
AI Support2w ago
AI Response
When working with OpenAI Assistant responses in BuildShip and wanting to parse specific data, ensure that the OpenAI Assistant node is set correctly for the output you're expecting. The typical way to access data is through path notation like response.textData. If that is not working, make sure: 1. Node Output Structure: Verify the structure of the node's output. You might need to inspect the output schema to understand how it is formatted. JSON parsing might be needed if the response is a serialized JSON string. 2. Correct Parsing: If the response requires parsing, ensure that you're using a parsing method compatible with the format of the data returned. For JSON formatted data, using the JSON String node should work, but check if the input to this node exactly matches the JSON format you expect. 3. Variable Usage: When referencing data in subsequent nodes, ensure the path you are using matches the structure returned by the initial node. Double-check that the naming and hierarchy are aligned with the response. 4. Node Description and Debugging: Use the node's built-in preview and test features to inspect actual outputs during testing phases to adapt your parsing logic. If parsing issues persist despite valid JSON parsing, there might be an upstream data formatting issue in the prior nodes or the assistant's response. If problems continue, please reach out to the support team via in-app support services for further assistance.
BuildShip AI Support