User Context Block in API

I’d love to use the User Context Block via API. But I’m curious how to do that. Any suggestions? l’m attempting to put a front end on a customized Deep Research remix.

Hi @jbherrera,

Thanks for the post!

The User Context block (along with blocks like Menu and Display Content) is designed to work inside MindStudio or through the Chrome Extension, where it can directly show content to the user.

For your use case, building a separate agent that focuses only on generating questions based on the content you provide might be better. In that setup, you would collect data on the frontend, trigger the agent via API, and pass the data as Launch Variables. The agent can then use a Generate Text block to create a question and return it to the frontend.

You can repeat this flow as many times as you need. You would just need to define when the frontend should call the agent again.

That’s just one workaround that comes to mind. If anyone in the Community has tackled something similar, feel free to jump in. Would be great to hear other perspectives.