Add connection details
Host, port, database name, username, and password. Supports MySQL and other configured drivers.
Connect a read-only database, authenticate visitors in the widget, let them search their own records (transactions, status, dates), and power lookup rules for bots and AI.
Connect your client database so visitors get real answers from your data — order status, account balance, ticket history, and more. Data lookup runs before bot templates and AI.
Wiretalk supports three related capabilities:
Host, port, database name, username, and password. Supports MySQL and other configured drivers.
Use the built-in connection test before saving. Config is stored encrypted on your site.
Define rules that map visitor questions to SQL queries and format the response message.
Match visitor messages with keywords or patterns. Each rule runs a query and formats the reply.
Build multi-table queries with joins, WHERE clauses, and column mappings in the visual rule builder.
Show paginated results in the widget with clickable row actions (e.g. “View invoice”).
Return HTML tables, charts, and downloadable exports inside chat replies when configured on a rule.
Require visitors to prove their identity before Wiretalk returns account-specific data. Login uses your parent resolver table — typically a customers or users table keyed by email or mobile.
In Data lookup settings, turn on the parent resolver and choose the parent table plus lookup columns (e.g. email, mobile).
Set menu label, confirm prompt ({email} placeholder supported), success reply, and optional visitor suggestion buttons shown after login.
Enable Require login email OTP to send a one-time code to the matched email. Visitors confirm with POST /api/widget/account-login/verify-otp.
account_login (logged_in, identifier, verified_at)POST /api/widget/account-logoutLet logged-in visitors search their own records without typing free-form chat messages. After account login, a Search your data button appears in follow-up suggestions (or the widget menu).
link_column (FK to parent account), filter columns, output columns, and optional masked columnslink_columnwidget_config.filter_record (enabled, filters, labels)See the Widget data lookup API for request/response details.
Visitors can paginate through lookup result sets, trigger row actions directly in chat, and — when logged in — open the filter record search modal. Demo row-action endpoints are available for testing during setup.
When a visitor completes account login, Wiretalk reads safe columns from the matched parent database row and fills empty visitor profile fields — name, email, phone, and custom pre-chat fields — without overwriting values the visitor already provided.
name, full_name, customer_name, or combined first_name + last_nameemail, user_email, phone, and mobile| Endpoint | Purpose |
|---|---|
GET/PATCH /api/agent/data-lookup | Config, connection, filter record settings |
GET /api/agent/data-lookup/schema | Table/column discovery |
POST /api/agent/data-lookup/preview-rule | Test a rule before publish |
GET /api/agent/data-lookup/logs | Execution audit log |
POST /api/widget/init | Returns filter_record and visitor_account_login in widget config |
POST /api/widget/account-login | Visitor account login (email/mobile identifier) |
POST /api/widget/account-login/verify-otp | Verify login OTP when email OTP is enabled |
POST /api/widget/account-logout | End visitor account session |
POST /api/widget/filter-records/search | Search logged-in visitor records (returns HTML body) |
POST /api/widget/data-lookup/paginate | Paginate lookup rule results in chat |
POST /api/widget/data-lookup/row-action | Execute a configured row action |
Full request/response examples: Widget data lookup API reference.