PriceCalculator
v1.0.0

Public home price calculator for SMBs.

Details

This event must be consumed using an authorization token. The token is utilized to verify that the user has permission to produce the event and set user_id/cookieaud_id and organization_id within the attributes. Additionally, the event_source and metadata.event_triggered_by are automatically populated by the CF-Worker-User-Event.

Triggered: When the user adds company data to price calculator on public home test b
Rules: N/A
Static Values:
  • event_type: price_calculator
  • event_name: platzi.b2b.1.price_calculator
event_id
string<uuid>
required

Id for the event. This is a client auto-generated UUID_V4

event_name
string
required

Name of the event with format organization.domain.version.action

event_occurred_on
string<date-time>
required

DateTime when the event was raises. Format YYYY-MM-DDTHH:MM:SSz

attributes
object
required

Contains arbitrary properties with entity information

key
string
required

email

value
string
required

company domain name

email
string

email

first_name
string

first name

last_name
string

last name

num_employees
string

number of employees

job_title
string

job title

company_name
string

company name

company_domain
string

company domain name

prospect_origin
string

ref to execution origin

metadata
object
required

Contain fixed properties with event information

event_type
string
required

Type of the event, used to join common sub events

event_source_ref
string

Ref to the source of the event

How to trigger this event

1curl --location 'https://api-c963080767f45828c31f83ca5cd25d36.staging.platzi.com/behavior/v1/' \
2--header 'Content-Type: application/json' \
3--data '{
4  "event_id": "2457207d-a9d8-4b46-aff3-2a8ca385f2f6",
5  "event_name": "platzi.b2b.1.price_calculator",
6  "event_occurred_on": "2023-05-01T22:29:56Z",
7  "attributes": {
8    "key": "foo@foo.com",
9    "value": "foo.com",
10    "email": "foo@foo.com",
11    "num_employees": "1-10",
12    "job_title": "Software Developer",
13    "company_name": "Foo",
14    "company_domain": "foo.com",
15    "prospect_origin": "public_home"
16  },
17  "metadata": {
18    "event_type": "price_calculator",
19    "event_source_ref": "public_home"
20  }
21}'
Edit this pageLast updated on 2025/2/18