Official documentation for extracting raw data from the database
curl
) or via graphical tools and Business Intelligence tools like DBeaver, Power BI, or Tableau.
messages_<company>
table:
user
and password
with your personal credentials.
query
parameter must be URL-encoded.FORMAT
at the end of the query:
JSON Example:
public-clickhouse.botslovers.com
443
public-clickhouse.botslovers.com
443
(or 8443
depending on configuration, check with your administrator)messages
agent_activity
messages
(Table: messages_<company>
)Field | Type | Description |
---|---|---|
sender_id | String | Unique sender identifier linking each message to a specific entity. |
sender_type | String | Message origin: "user" , "bot" , "system" , or "human" . |
id | String | Unique key of each message, ensuring duplicate detection. |
created_at | DateTime | Timestamp in UTC for when the message was generated. |
channel | String | Channel through which the message was sent: "whatsapp" or "web" (widget). |
session | String | Conversation identifier grouping multiple messages. |
direction | String | Message direction: "inbound" or "outbound" . |
type | String | Communicative type: "inbound" (received) or "outbound" (sent). |
text | String | Full free-text content of the message. May include text, emojis, emails, IDs, etc. Note: May be null for images or documents. |
language | String | Language code (e.g., "es" , "en" ). Note: May be null if undetected. |
agent_activity
(Table: chat_agent_log_<company>
)Field | Type | Description |
---|---|---|
id | String | Unique event identifier. |
chat_id | String | Associated chat identifier. |
agent_id | String | Unique agent identifier involved in the event. |
joined_at | DateTime | UTC timestamp when the agent joined the chat. |
left_at | Nullable(DateTime) | UTC timestamp when the agent left the chat, or null if still active. |
event | String | Type of event. Possible values: bot_assigned , agent_timeout , user_timeout , agent_joined , chat_escalated , manual_close , resolved , assigned_to_human , transferred . |
response_rating | Nullable(Int16) | Rating given for the interaction, if any. |
created_at | DateTime | Record creation timestamp. |
updated_at | DateTime | Record last update timestamp. |
deleted_at | Nullable(DateTime) | Logical deletion timestamp, if applicable. |
agent_status_logs
(Table: agent_status_logs_<company>
)Field | Type | Description |
---|---|---|
id | String | Unique status change identifier. |
agent_id | String | Unique agent identifier. |
old_status | String | Previous agent status: training , offline , break , ending_shift , inactive , online . |
new_status | String | New agent status: training , offline , break , ending_shift , inactive , online . |
status_changed_at | DateTime | UTC timestamp when the status changed. |
duration_seconds | Nullable(Int64) | Duration in seconds of the previous status, or null if not applicable. |
created_at | DateTime | Record creation timestamp. |
messages_
table, especially the text
column, retains the full content of customer interactions, potentially containing personal data such as names, email addresses, ID numbers, or other details about the products or services offered by your company.