Event Enrichment (Fallback)

Backend always enrich activity ID if not provided. For the data_value field, there are 2 scenarios for backend to enrich the data_value

  1. When you provide type but not provide message

  2. When you don't provide any message and type

⚠️If you provide message field, GLChat preserves it as-is

Case 1: Provide Type Only

If you provide type field without any message, GLChat will create the message for you. The message will be Performing {type} action Example input:

{
  "data_type": "activity",
  "id": "aabbcc",
  "data_value": 
    "{\"type\": \"extract_table\",
    \"table_name\": \"pricing\",
    \"rows\": 15}"
}

For this case, GLChat will create message:

Performing extract_table action

Case 2: Not Provide Type and Message

If you not provide type and message field, GLChat will create a markdown-formatted message from all fields. Example data_value:

For this case, GLChat will create message:

⚠️ Limitation: Auto-generated messages are less user-friendly than custom messages. Always provide message.

Last updated