Skip to content
Data

Connect a database or API ​

Connect your database once. Every question in a chat with it then runs on the live data. Tabloy only reads. It never changes your data.

Connect a database ​

  1. Open Data on the left, press Add data and pick your database under Connect.

  2. Fill in the fields, or switch to Connection string and paste it. Then press Test and continue.

    1. Fields or a connection string.
    2. Test and continue checks that Tabloy can connect.
  3. Tick the tables you want to ask about. A few well-chosen tables give better answers than the whole database.

  4. Wait while Tabloy reads the tables and learns what each column means. When it says Ready, click it to start a chat.

What you need ​

DatabaseWhat to fill in
PostgresHost, port, database, user, password. Or a connection string.
MySQLHost, port, database, user, password. Or a connection string.
BigQueryA service account JSON file.
SnowflakeThe connection string from Snowflake, with user and password.
REST APIA name, the address of the API and a token. A link to its docs helps.

The password is kept for this connection only. It is deleted when you delete the connection.

Ask ​

Ask the way you would ask a colleague who knows the database.

Try these requests

How many orders did we ship last week, by country?

Which ten customers bought the most this year?

Show daily sign-ups for the last 30 days as a line chart

To use the database in any chat, press + and choose Data source.

If it doesn't connect ​

  • Fill in every field, the port too. Postgres usually uses 5432, MySQL 3306.
  • The database must accept connections from the internet. A database on your laptop or an office network can't be reached.
  • Turn on SSL if your database needs it.
  • For BigQuery, the service account needs read access.

On the Data page each connection shows when it last answered. If it stops answering, the ⋯ menu has Check connection.

Share it with your team ​

In the ⋯ menu, choose to share it with your organization. Your team can ask about it in their chats. The password stays with you. See Organizations.