Skip to content

Create company automatically from contact #2540

@FelixMalfait

Description

@FelixMalfait

When we create a contact, if that contact doesn't have a company, then we should create the company automatically from the domain name.

  1. Create a function to detect if an email is a professional email (@company.com) or not (@gmail.com, @outlook.com etc)
    You can use: https://gist.github.com/ammarshah/f5c2624d767f91a7cbdc4e54db8dd0bf
  2. When a contact is created without a company. Check if it's a professional email and if a company exist with the contact email's domain, if yes then link the contact to that company.
  3. If no company exist, and it's a professional email, then create company from domain name. Company name should be inferred from the domain name as v1 (remove domain extension + add a capital letter). In v2 we'll use a data enrichment database.

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: backendIssues that are affecting the backend side only

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions