Piyush Arora.
ProjectsAboutResumeContact
Back to Projects

Project Details

Agentic Copilot

Intelligent copilot assistant using Mastra Framework and AI SDK to guide users through complex workflows like job posting, profile completion, and content enhancement.

Mastra FrameworkAI SDKWorkflowsHuman-in-the-LoopCopilotChatbotReactNext.js

About the Project

Built an agentic copilot system using Mastra Framework and AI SDK that transforms a chatbot into a powerful assistant capable of guiding users through complex workflows. The copilot assists with tasks such as posting jobs, filling profiles, and enhancing job postings by leveraging Mastra's human-in-the-loop tool execution and workflow capabilities. Users interact naturally through conversation, and the copilot breaks down complex processes into manageable steps, requesting input when needed and executing actions through tools. This approach makes sophisticated workflows accessible through simple conversational interactions, significantly improving user experience and task completion rates.

Project Overview

Built an agentic copilot system using Mastra Framework and AI SDK that transforms a chatbot into a powerful assistant capable of guiding users through complex workflows. The copilot assists with tasks such as posting jobs, filling profiles, and enhancing job postings by leveraging Mastra's human-in-the-loop tool execution and workflow capabilities. Users interact naturally through conversation, and the copilot breaks down complex processes into manageable steps, requesting input when needed and executing actions through tools.

Copilot Capabilities

The agentic copilot guides users through various workflows by understanding their intent and orchestrating the necessary steps. Instead of navigating complex forms and interfaces, users simply describe what they want to accomplish, and the copilot handles the process step-by-step.

Supported Workflows:

  • Post a Job: Guides recruiters through job posting creation, collecting required information step-by-step
  • Fill Profile: Assists users in completing their profiles by identifying missing information and requesting details
  • Enhance Job Posting: Helps improve existing job postings by suggesting enhancements and implementing changes
  • Workflow Guidance: Breaks down complex multi-step processes into conversational interactions

Mastra Framework Integration

Leveraged Mastra Framework's capabilities to build the copilot system. Used workflows to define multi-step processes, implemented human-in-the-loop tool execution to request user input at appropriate points, and utilized tool-based actions to interact with the platform's functionality. The framework's workflow orchestration ensures that complex processes are executed correctly while maintaining conversation context throughout the interaction.

Human-in-the-Loop Tool Execution

Implemented human-in-the-loop patterns where the copilot pauses execution to request user input or confirmation before proceeding. This ensures users remain in control of the process and can provide necessary information or approve actions. The copilot intelligently determines when to request input, making the interaction feel natural and conversational rather than rigid or automated.

Example flow: User says "I want to post a job" → Copilot identifies required fields → Requests job title → User provides title → Requests location → User provides location → Continues until all required information is collected → Executes job posting → Confirms completion

Workflow Orchestration

Used Mastra's workflow capabilities to define and execute multi-step processes. Workflows handle the sequence of operations, manage state between steps, and coordinate tool executions. This allows the copilot to handle complex tasks that require multiple actions, conditional logic, and user interactions, all while maintaining context and providing a smooth user experience.

Key Features

Conversational Workflows

Transforms complex multi-step processes into natural conversational interactions, making sophisticated workflows accessible to all users.

Human-in-the-Loop

Intelligently pauses execution to request user input or confirmation, ensuring users remain in control throughout the process.

Workflow Orchestration

Uses Mastra workflows to manage complex multi-step processes, coordinate tool executions, and maintain context throughout interactions.

Tool-Based Actions

Executes platform actions through tools, enabling the copilot to perform real operations like creating job postings or updating profiles.

Technical Stack

Mastra FrameworkAI SDKWorkflowsHuman-in-the-LoopReactNext.jsOpenAI