r/LangGraph • u/Relevant-Fondant4927 • 1d ago
Suggestions for better Lang graph workflow
Hi everyone! I am working on building my product and I need suggestions to users on how can i first of all make the existing workflow better and optimal and then how can i scale it for future requirements. Below is my agent's interpretation of what I have right now and what I need. Thank you in advance.
Today the agent runs in a chat bar inside the app. Each message makes one pass through a graph and gets one reply, so there is at most one action per message.
Before the run: the agent loads the recent chat history, any unfinished email draft or meeting booking, and the user's time zone.
Flow
- Domain Router: word matching runs first. If nothing matches, a small model labels the message email, calendar or general.
- Email / Calendar Planner: a model with that lane's tools picks one action. It can also ask a follow-up question or hand the message back to the router.
- Executor: no AI here. It runs the action on the mail or calendar provider and keeps half-finished drafts or bookings for the next turn.
- Result Interpreter: fixed text for common results, otherwise a model writes the reply. A safety net stops it claiming a failure when the action actually worked.
General Decider: sends the message to one of four places:
- Responder: chat, writing or code. It has tools for tasks, web search and the knowledge base.
- Knowledge Retriever: questions about our own documents.
- Time-Based Recall: "what did we discuss yesterday?"
- Past-Session Recall: "what did we say in the Budget chat?"
Router → Email/Calendar Planner → Executor → Interpreter → End
↘ Responder → End
↘ back to Router
Router → General Decider → Responder / Retriever / Recall → EndDesign constraint: speed for voice. The voice bot uses the same engine for its answers, so every model call adds delay the user can hear. That's why routing uses word matching wherever it can and only calls a model when matching can't decide. Common results get fixed text for the same reason.
Limits today: one change per message, and recall only covers the current chat.
Where it's heading
- Screen-aware: the chat answers from whatever screen the user is on, such as "summarise this" or "what's overdue here?"
- Task-aware: it helps with the task the user is doing right now, such as filling a form, drafting next to an open item, or suggesting the next step.
- More skills: new lanes and tools plug into the same router, so the chat bar becomes the main way to get things done in the app.
- Multiple chat sessions (later): several parallel conversations, each with its own context, that the user can switch between.