CRM & Sales Pipelines
Relevant source files
The following files were used as context for generating this wiki page:
- README.md
- apps/gauzy-e2e/src/integration/ManageEmployeesTest.ts
- apps/gauzy-e2e/src/integration/ProposalsTest.ts
- apps/gauzy-e2e/src/integration/TimesheetsTest.ts
- apps/gauzy-e2e/src/support/step_definitions/ReportsTest/ReportsTest.ts
- packages/core/src/lib/contact/contact.entity.ts
- packages/core/src/lib/deal/deal.entity.ts
- packages/core/src/lib/pipeline/pipeline.entity.ts
- packages/mcp-server/README.md
- packages/plugins/job-proposal-ui/package.json
- packages/plugins/job-proposal/package.json
- packages/ui-core/i18n/assets/i18n/en.json
The Ever Gauzy platform includes a comprehensive Customer Relationship Management (CRM) and Sales Pipeline system designed to manage customer interactions, track sales opportunities, and streamline the sales process from lead generation to deal closure. This module is a core part of the platform's business management capabilities.
The system allows users to manage contacts, define custom sales pipelines with various stages, and track individual deals as they move through these stages. It also integrates with other features like Proposals to create a cohesive sales workflow. The UI provides a visual, Kanban-style board for deal management, enhancing user experience and productivity.
Sources: README.md, packages/ui-core/i18n/assets/i18n/en.json:1150-1175
Core Data Model
The CRM and Sales Pipeline functionality is built upon three core entities: Contact, Pipeline, and Deal. These entities are interconnected to model the entire sales process.
The diagram below illustrates the relationships between the main entities in the CRM system.
Contact Entity
The Contact entity represents an individual or organization that the business interacts with. It stores essential contact information and can be categorized into different types.
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the contact. |
name | string | The full name of the contact person or company. |
email | string | The primary email address of the contact. |
phone | string | The primary phone number of the contact. |
organization | IOrganization | The organization this contact belongs to. |
tags | ITag[] | Tags associated with the contact for categorization. |
imageUrl | string | URL for the contact's profile picture or logo. |
country | string | The country where the contact is located. |
Sources: packages/core/src/lib/contact/contact.entity.ts
Pipeline Entity
A Pipeline represents a specific sales process. Each pipeline consists of multiple stages that a deal progresses through. Organizations can define multiple pipelines for different products, services, or sales processes.
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the pipeline. |
name | string | The name of the sales pipeline (e.g., "Enterprise Sales"). |
description | string | A brief description of the pipeline's purpose. |
stages | IPipelineStage[] | An ordered array of stages that make up the pipeline. |
isActive | boolean | A flag to indicate if the pipeline is currently in use. |
deals | IDeal[] | A collection of all deals within this pipeline. |
Sources: packages/core/src/lib/pipeline/pipeline.entity.ts
Deal Entity
A Deal represents a potential sales opportunity with a contact. It is the central element that moves through the stages of a sales pipeline.
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the deal. |
title | string | A descriptive title for the deal. |
pipeline | IPipeline | The pipeline this deal belongs to. |
stage | IPipelineStage | The current stage of the deal within the pipeline. |
probability | number | The estimated probability of winning the deal (as a percentage). |
contact | IOrganizationContact | The contact associated with this deal. |
dealSource | string | The source from which the deal originated (e.g., "Web", "Referral"). |
dealValue | number | The monetary value of the deal. |
Sources: packages/core/src/lib/deal/deal.entity.ts
Contacts Management
Contacts are a fundamental part of the CRM. The system allows for detailed management of different types of contacts.
Contact Types
The system categorizes contacts to better manage relationships and sales funnels.
| Contact Type | Description |
|---|---|
Visitors | Individuals who have interacted with the company but are not yet qualified leads. |
Leads | Potential customers who have shown interest. |
Customers | Individuals or organizations that have made a purchase. |
Clients | A term often used interchangeably with Customers, representing ongoing relationships. |
Sources: packages/ui-core/i18n/assets/i18n/en.json:960-964
Sales Pipelines & Deals
The Sales Pipeline feature provides a visual framework to track and manage deals from initiation to completion.
Deal Management Flow
Deals are managed in a Kanban-style board where they can be moved between different stages of a pipeline. The UI supports drag-and-drop functionality for updating a deal's stage.
This diagram shows a typical flow for a deal through a sales pipeline.
Related Features
Proposals
The sales process is supported by a Proposals feature, which allows users to create, manage, and track proposals sent to potential clients. This feature is implemented as a plugin.
The lifecycle of a proposal includes:
- Registration: A new proposal is created, associated with an employee, a job post URL, and relevant tags.
- Tracking: The status of the proposal can be updated (e.g., "Sent", "Accepted").
- Management: Proposals can be viewed, edited, and deleted.
Sources: apps/gauzy-e2e/src/integration/ProposalsTest.ts, packages/plugins/job-proposal/package.json, packages/plugins/job-proposal-ui/package.json
Architectural Context
MCP Server Tooling
The CRM and Sales data can be accessed and manipulated programmatically through the Model Context Protocol (MCP) server. This allows for automation and integration with other systems, such as AI assistants. The MCP server provides a dedicated tool suite for Sales & CRM.
- Deals: 15 tools for managing sales opportunities.
- Pipelines: 8 tools for managing sales pipelines.
- Organization Contacts: 17 tools for contact management.
This tooling enables advanced workflows, such as creating deals or updating contact information via an external script or application that communicates with the Gauzy backend.
Sources: packages/mcp-server/README.md