Events
message
One SMS or email between a dealer and a consumer.
A message event is one SMS or email, in either direction. Outbound messages are the ones Impel sends for the dealer, written by the AI or by dealer staff. Inbound messages are the consumer's replies.
| Field | Type | Present | Description | Example |
|---|---|---|---|---|
event_type | string | Always | Always message for this event. | message |
event_timestamp | string (date-time) | Always | When the message was sent or received, in UTC with second precision. | 2026-09-14T15:02:11Z |
event_id | string (uuid) | Always | Stable identifier for this event. It never changes across retries or the history file, so use it to deduplicate. | 7f6efcd5-3151-5c6f-a502-bd56256b6527 |
client_key | string | Always | Impel's identifier for the dealer. | EXAMPLEDEALER |
consumer_key | string | Always | Impel's identifier for the consumer. Unique within a dealer only, so key consumers on client_key plus consumer_key. | CONSUMER-001 |
message | object | Always | The message itself. | |
message.conversation_id | string | When known | Identifies the conversation thread. Present on every inbound message; can be absent on an outbound one. | 6cac7467-7e3b-42ba-83bc-dc163a95bb36 |
message.opportunity_id | string | When known | Impel's identifier for the lead the conversation belongs to. | 9dca0816-4fd7-4a80-a238-3d5c5b928c50 |
message.source_system | string | When known | The Impel product the message belongs to. On an outbound message, it's the product that sent it; on an inbound reply, it's the product whose conversation the consumer is replying to. Current values are lead_nurture and voice_ai; more products can be enabled later, so expect new values. | lead_nurture |
message.direction | string | Always | outbound is dealer to consumer; inbound is the consumer's reply. Values: outbound, inbound. | outbound |
message.channel | string | When known | Delivery channel, lowercase. Today this is sms or email. | sms |
message.sent_by | string | When known | Who wrote the message. Outbound: AI, Human (dealer staff) or System, and absent when unknown. Inbound: always Consumer. New values can appear. | AI |
message.sender_contact | string | When known | Phone number or email address the message was sent from: the dealer's on outbound, the consumer's on inbound. | +15555550100 |
message.receiver_contact | string | When known | Phone number or email address the message was sent to. | +15555550123 |
message.subject | string | When known | Email subject line. Absent on SMS. | Your test drive at Example Motors |
message.body | string | When known | Message content as sent: plain text for SMS, usually HTML for email. | Hi, thanks for your interest in the vehicle you… |
message.body_text | string | When known | Plain-text version of the content, with no markup. Identical to body for SMS; can be absent on inbound email. | Hi, thanks for your interest in the vehicle you… |
metadata | object | Always | Identifiers on your side. | |
metadata.source_client_key | string | Always | Your dealer code for this dealer, as registered with Impel during onboarding. | DEALER-001 |
Notes
- Which messages are shared. Outbound messages from the Impel products enabled for you, and the consumer's replies in those same conversations. Messages Impel sends to dealer staff aren't shared.
- Inbound replies carry their conversation's product. A reply's
source_systemis the product whose conversation the consumer is answering. A reply is shared because itsconversation_idbelongs to a conversation one of your enabled products started. bodyandbody_text. For SMS they're the same. For email,bodyis usually HTML (plain text when the email had no HTML part) andbody_textis the plain-text version; usebody_textif you only need the words. On inbound emailbody_textcan be missing, so fall back tobody.- Contacts are per message.
sender_contactandreceiver_contactare the addresses used on this message. They're the only way a consumer's newer phone number or email reaches you, sinceconsumer_createdis never re-sent.