Skip to main content

Overview

Integrations allow you to connect external data sources and cloud services to Sphinx. Once configured, Sphinx can automatically query your databases, read from cloud storage, and interact with your data infrastructure—all through natural language requests.

Supported Platforms

Databricks

Connect to Databricks workspaces for data analytics and ML workflows.

Snowflake

Query Snowflake data warehouses using PAT authentication.

SQL Databases

Connect to PostgreSQL, MySQL, SQL Server, and other SQL databases.

Google Cloud Platform

Access BigQuery, Cloud Storage, Vertex AI, and Firestore.

Amazon Web Services

Connect to S3, DynamoDB, Athena, and other AWS services.

Microsoft Azure

Access Blob Storage, Azure SQL, Key Vault, and more.

MongoDB

Query MongoDB databases and collections.

Custom Integration

Create your own integration with custom rules and secrets.

Setting Up Integrations

1

Open the Dashboard

Navigate to dashboard.prod.sphinx.ai and sign in.
2

Go to Integrations

Click Integrations in the sidebar navigation.
3

Add a new integration

Click Add Integration, select your service, and choose an authentication method.
4

Configure credentials

Enter your connection details and credentials. Give your integration a memorable name.
5

Use in notebooks

Ask Sphinx to query your data. It will automatically use your configured integrations.

Platform Configuration

Connect to Databricks workspaces to run SQL queries and access data lakes.

Authentication Methods

MethodUse Case
Personal Access TokenIndividual access using a Databricks PAT

Required Fields

workspaceUrl
string
required
Your Databricks workspace URL (e.g., https://adb-123456789.12.azuredatabricks.net)
token
string
required
Your Databricks personal access token (starts with dapi...)
httpPath
string
SQL warehouse HTTP path (e.g., /sql/1.0/warehouses/abc123)

Example Usage

import sphinxai
from databricks import sql

token = await sphinxai.get_user_secret_value("integration/databricks/my-workspace/token")

connection = sql.connect(
    server_hostname="adb-123456789.12.azuredatabricks.net",
    http_path="/sql/1.0/warehouses/abc123",
    access_token=token
)

cursor = connection.cursor()
cursor.execute("SELECT * FROM my_table LIMIT 10")
result = cursor.fetchall()

How Sphinx Uses Integrations

When you configure an integration, Sphinx:
  1. Creates a Rule — Automatically generates instructions for connecting to your data source
  2. Stores Secrets — Encrypts and securely stores your credentials
  3. Provides Context — Teaches the AI how to authenticate and query your data
When you ask questions about your data, Sphinx:
  1. Identifies which integration to use based on your question
  2. Generates code that retrieves credentials from Sphinx secrets
  3. Connects to your data source and runs queries
  4. Returns results for analysis
You don’t need to remember connection strings or authentication code. Just ask Sphinx to “query the sales data from Snowflake” and it handles the rest.

Security

All sensitive credentials (passwords, tokens, API keys) are encrypted before storage. Connection details are only accessed when explicitly used in your notebooks.
For AWS, Azure, and GCP, “local credentials” options use credentials already on your machine. These don’t store any secrets in Sphinx—they rely on your local environment being properly configured.
  • Use service accounts or IAM roles with minimal required permissions
  • Rotate credentials regularly (every 90 days recommended)
  • Use separate integrations for production vs. development environments
  • Review and remove integrations you no longer need

Managing Integrations

Viewing Integrations

All configured integrations appear on the Integrations page in your dashboard. You can see:
  • Integration name
  • Service type
  • Authentication method
  • When it was created

Updating Credentials

To update an integration’s credentials:
  1. Click on the integration in your dashboard
  2. Update the fields you need to change
  3. Click Save

Removing Integrations

To remove an integration:
  1. Click on the integration in your dashboard
  2. Click Delete
  3. Confirm the deletion
Deleting an integration removes all associated secrets. Any notebooks relying on this integration will fail to authenticate until you reconfigure it.