This project is an AI-powered recruitment workflow using Mastra AI agents to automate initial email screening, validate candidate submissions (resume/cover letter), and send appropriate responses. The system is designed to be modular, context-aware, and easily extendable.
- Mastra AI
- Node.js
- Redis
- BullMQ
- Gmail API
- TypeScript
- Clone the repository using
git clone git@github.com:togetherai/recruit-ai-agent.git - Install the dependencies using
npm installoryarn install - Set up your Gmail account with the necessary permissions using the
OAuth2.0method. - Create a
.envfile with the following variables:RECRUITMENT_MAIL: The Gmail email address to be used for the recruitment workflowREDISCLOUD_URL: The Redis Cloud URL to be used for storing the job application dataGMAIL_CLIENT_ID: The Gmail API client IDGMAIL_CLIENT_SECRET: The Gmail API client secret . Create a job application database in your Redis Cloud instance.
- Run the application using
npm run startoryarn start - The application will start the Mastra AI agent and the BullMQ job queue.
- Send an email to the
RECRUITMENT_MAILaddress with the job application details. - The system will automatically create a job application database in your Redis Cloud instance.
- The system will then validate the candidate submissions (resume/cover letter) and send appropriate responses.
The system can be configured using the following environment variables:
RECRUITMENT_MAIL: The Gmail email address to be used for the recruitment workflowREDISCLOUD_URL: The Redis Cloud URL to be used for storing the job application dataGMAIL_CLIENT_ID: The Gmail API client IDGMAIL_CLIENT_SECRET: The Gmail API client secretBULLMQ_REDIS_URL: The Redis URL to be used for the BullMQ job queueBULLMQ_CONCURRENCY: The number of concurrent jobs to be processed by the BullMQ job queueBULLMQ_REDIS_KEY_PREFIX: The key prefix to be used for the BullMQ job queue in Redis