Workflows use predefined code paths or graphs, so they are predictable, easier to debug, and often cheaper and faster. Agents decide their own steps and tools, which helps with open-ended tasks but can increase cost and latency.
How to build Enterprise Aware Agents
Speaker
Chau Tran of Glean explains how to build enterprise-aware agents at an AI Engineer talk.
Tran describes an agent's sequence of actions as a workflow that can be captured and reused. Teams can compare agent traces with successful workflows to evaluate whether the agent took the right steps, and use those examples to guide future agents. Agents can also draft workflows from natural-language requests and help discover useful workflows from user activity.
Tran compares an untrained AI to a capable new employee who still needs to learn company practices and who to ask for help. For competitor analysis, a basic web search may miss internal protocols and the metrics executives care about. Enterprise-aware agents need to follow the practices that make an acceptable result a strong one.
Fine-tuning can generalize across many tasks, but it requires retraining when models, tools, processes, or priorities change, and it is less suited to different team preferences. Dynamic prompting retrieves similar task workflows at runtime and provides them as examples, letting the agent adapt its behavior as requirements change.
Workflow search can use lexical matching, vector embeddings, reranking, and late interaction, much like document search. Tran says text similarity alone returns too many plausible results in enterprise settings. Signals such as who created a workflow, how closely they work with the user, its success rate, and discussion on Slack can help identify authoritative examples.
Takeaways
- Use workflows when predictable execution, lower latency, and easier debugging matter most.
- Evaluate agents by comparing their action traces with successful workflows, not only by judging their final answers.
- Save successful agent traces as company workflow examples that can guide future tasks.
- Use fine-tuning for stable, general behaviors and retrieval-based prompting when processes or user needs change often.
- Include trust and success signals in workflow search because semantic similarity alone may surface the wrong example.
Mentioned in this talk
Search inside this talk
What was claimed 3
- feature
Glean: Its agent implementation can generate proposed workflows from a user's natural-language task description, which the user can edit.“we run an agent implementation to figure out the steps needed to achieve that workflow”
YouTube Unverified1 source· Talk
- featureDynamic prompting with search: Retrieves similar task examples and their workflows at runtime to guide an agent.
“it finds the most similar tasks in the training data and feeds representations of those workflows to the LLM as examples”
YouTube Unverified1 source· Talk
- featurehybrid search: Combines lexical search, vector embeddings, reranking, and late interaction.
“hybrid search using lexical search, vector embeddings, reranking, late interaction”
YouTube Unverified1 source· Talk













