Skip to Content
CRM & PipelineLead Activities

Lead Activities

Every touchpoint and action on a lead is logged to the lead_activities table, forming a full timeline for each contact.

Data model

lead_activities

ColumnTypeNotes
tenant_iduuid FK → tenants
lead_iduuid FK → leads
typeenumSee activity types below
descriptiontextHuman-readable summary of the activity
actor_typeenumhuman | agent | system
actor_idvarchar(255)User ref_id or agent role
metadatajsonbType-specific data (see below)

Activity types

TypeLogged when
noteA human or agent adds a note to the lead
email_sentAn outbound email is sent to the lead
email_receivedA reply or inbound email is received from the lead
callA phone call is logged
status_changeThe lead’s status field is updated
enrichmentAuto-enrichment runs and populates enrichment_data
score_updatedScoring engine recalculates and updates score/band
nurture_enrolledLead is enrolled into a nurture sequence
nurture_step_scheduledA nurture step is queued for future execution
nurture_step_executedA nurture step is executed (email/task/call reminder)
nurture_pausedSequence is paused manually or by rule
nurture_resumedPaused sequence is resumed
nurture_exitedLead exits sequence due to conversion/disqualification/reply

Metadata examples

status_change

{ "fromStatus": "new", "toStatus": "qualified" }

email_sent

{ "emailSubject": "Following up on your inquiry", "messageId": "msg_abc123" }

enrichment

{ "linkedinUrl": "https://linkedin.com/in/example", "companySize": "11-50", "industry": "SaaS", "website": "https://example.com" }

score_updated

{ "previousScore": 46, "newScore": 68, "previousBand": "warm", "newBand": "hot", "modelVersion": "v1.0", "topFactors": [ "job_title_match", "opened_2_emails", "visited_pricing_page" ] }

nurture_step_executed

{ "sequenceId": "seq_123", "stepId": "step_2", "channel": "email", "templateId": "tmpl_followup_2", "deliveryStatus": "sent" }

Actor types

Activities can be logged by:

  • human — a tenant user or DM team member acting via the dashboard
  • agent — an AI agent (e.g. enrichment agent, follow-up drafter)
  • system — automated system events (e.g. lead form webhook ingestion)

© 2026 Leadmetrics — Internal use only