home / sales_assistant

Mensagens

6 rows where conversation_id = 3 sorted by created_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: sender_type, sender_id, telegram_message_id, created_at (date)

message_id conversation_id sender_type sender_id telegram_message_id content content_type metadata intent_label created_at ▲
12 3 3 consumer_agent 0 0 Boa noite, querida! 🌙 Fica à vontade pra me procurar quando quiser, viu? Assim que a gerente resolver essa questão do sistema, já fica tudo certinho pra você ver tudinho que temos por aqui. Um beijo… text {}   2026-06-23T04:26:02Z
11 3 3 customer 208566864 29 Pode deixar então. Boa noite text {}   2026-06-23T04:25:54Z
10 3 3 consumer_agent 0 0 Amiga, deixa eu ser bem sincera com você: tentei puxar a lista de todos os nossos serviços aqui no sistema — cabelo, unhas, estética — mas parece que as informações não carregaram direitinho. 😕 Já ch… text {}   2026-06-23T04:18:09Z
9 3 3 customer 208566864 27 Quais serviços vcs tem? text {}   2026-06-23T04:17:46Z
8 3 3 consumer_agent 0 0 Oii, amiga! Tudo bem com você? 🌸 Aqui é a Mary, do Harmônico Studio! Que bom receber você por aqui. Me conta: o que você está precisando hoje? Temos serviços de cabelo, manicure e estética — ou se qu… text {}   2026-06-23T04:16:44Z
7 3 3 customer 208566864 25 Oii text {}   2026-06-23T04:16:37Z

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE message (
    message_id            INTEGER PRIMARY KEY AUTOINCREMENT,
    conversation_id       INTEGER NOT NULL REFERENCES conversation(conversation_id) ON DELETE CASCADE,
    sender_type           TEXT NOT NULL,
    sender_id             INTEGER NOT NULL,
    telegram_message_id   INTEGER NOT NULL,
    content               TEXT NOT NULL,
    content_type          TEXT NOT NULL DEFAULT 'text',
    metadata              TEXT NOT NULL DEFAULT '{}',
    intent_label          TEXT,
    created_at            TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
    CHECK (sender_type IN ('customer', 'consumer_agent', 'seller', 'seller_agent')),
    CHECK (content_type IN ('text', 'photo', 'document', 'location', 'contact'))
);
CREATE INDEX idx_message_conversation_id ON message(conversation_id);
CREATE INDEX idx_message_created_at ON message(created_at);
Powered by Datasette · Queries took 1.2ms