[Object object] response using Assistants APi with Node.js

With a quick look, I see some potential errors. First you have a condition for the typeof result.data.content content is object. However within the inner condition implementation you use result.data.content.map which is undefined since object dont have a map function. Map function is within array.

So there is a potential bug there. If you want tto debug and see complete result. I would use JSON.stringify(result.data) and log it. You will see the entire object and not the [Object] notation.

Good luck :wink: