EvaluationAnswer
v1.0.0

This event contains information about the answers provided by user in the English test.

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 Azure returns prosody score from user response audio
Rules: N/A
Static Values:
  • event_type: evaluation_answer
  • event_name: platzi.evaluation.1.evaluation_answer
event_id
string<uuid>

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

event_name
string

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

event_occurred_on
string<date-time>

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

metadata
object

Contain fixed properties with event information

event_type
string
required

Type of the event, used to join common sub events

attributes
object

Contains arbitrary properties with entity information

exam_id
string<uuid>
required
name
string
required
email
string<email>
required
user_id
integer
required
material_url
string<uri>
required
material_text_description
string
required
question
string
required
question_category
string
required
question_level
string
required
Allowed values:
a1a2b1b2c1
attachment_url
string<uri>
required
answer
string
required
correct
boolean
required

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.evaluation.1.evaluation_answer",
6  "event_occurred_on": "2023-05-01T22:29:56Z",
7  "attributes": {
8    "exam_id": "550e8400-e29b-41d4-a716-446655440000",
9    "name": "John Doe",
10    "email": "john.doe@example.com",
11    "user_id": 56789,
12    "material_url": "https://example.com/material.pdf",
13    "material_text_description": "a) There a chair in the roof
14b) There is a chair to the roof
15c) There is a chair on the roof.",
16    "question": "What is the right order for this phrase?",
17    "question_category": "grammar",
18    "question_level": "b1",
19    "attachment_url": "https://example.com/question_attachment.jpg",
20    "answer": "There is a chair on the roof.",
21    "correct": true,
22    "value": "There is a chair on the roof.",
23    "key": "evaluation_answer"
24  },
25  "metadata": {
26    "event_type": "evaluation_answer"
27  }
28}'
29
Edit this pageLast updated on 2025/2/18