Hello! I’m building a chatbot for my company using our customer data. I’m trying to understand something: if Cursor was built with Mastra, does it rely on an agent or a workflow?
Right now, my agent isn’t very smart — it just calls 2–3 tools and answers. But I want it to reason more. For example: if I ask for the property’s surface areas, I want the agent to think:
“Okay, you asked for surface information. I see in the listing that there’s a total surface value. Let me check the other files… I see 5 JSON files, this one contains X, etc.”
Basically, I want it to plan its next actions and investigate the available data, instead of just calling a tool once and stopping.
Cursor seems to do this kind of reasoning (“planning next moves”) even without using a dedicated reasoning model — they say you can achieve this with Composer.
So my question is: should I build my system as an Agent or as a Workflow if I want this kind of intelligent behavior? And how can I give my agent this deeper reasoning capability with Mastra?
Thanks!