Quickstart
Get started with Infactory in minutes
Creating your first AI data experience
This guide will help you connect your database, generate intelligent queries, and deploy them as APIs in just a few minutes.
1. Getting Started
Sign in to infactory
Navigate to your infactory workshop at workshop.infactory.ai and sign in with your credentials. A default project is automatically created for you, and you’ll land there when you sign in.
Explore your default project
Your default project is ready to use. You can rename it to something more descriptive by clicking on the project name and entering a new name that reflects its purpose or the data you’re connecting.
2. Connecting your data
To connect your data to Infactory:
- Navigate to the Connect page in your project dashboard
- You’ll see the different data sources you can connect to, including (but not limited to) CSV files, Azure Cosmos DB, and PostgreSQL
- Select the appropriate data source and follow the connection instructions
Connect to Azure Cosmos DB
Connect to Azure Cosmos DB
- In your project, navigate to the Connect tab
- Select Azure Cosmos DB from the available data sources
- Enter your connection details:
- Connection URL: Your Cosmos DB endpoint URL
- Key: Your Cosmos DB access key
- Database Name: The name of your Cosmos DB database
- Click Connect
Infactory will analyze your database schema and prepare it for query generation.
Connect to PostgreSQL
Connect to PostgreSQL
- In your project, navigate to the Connect tab
- Select PostgreSQL from the available data sources
- Enter your connection details:
- Host: Your PostgreSQL server hostname
- Port: The port number (typically 5432)
- Username: Your database username
- Password: Your database password
- Database Name: The name of your PostgreSQL database
- Click Connect
Infactory will analyze your database schema and prepare it for query generation.
Connect to custom data sources
Connect to custom data sources
If your data source isn’t listed, you can still connect it using custom connections. Contact our support team at [email protected] to learn more about custom connections or to request integration with a new data source.
3. Building queries
After connecting your data, Infactory automatically generates queries based on your schema.
Navigate to the Build tab
This is where you can view automatically generated queries and create new ones.
Explore autogenerated queries
Infactory automatically generates about 12 queries that can be answered based on your data schema. These serve as a starting point for your project.
Test a query
Select a query from the list and click Run to execute it and see the results. The results will appear as structured data in the results panel.
Create a new query (optional)
To create a new query:
- Click the New Query button
- Use the Infactory assistant to describe what you want to query
- Review the generated query code
- Test it by clicking Run
- Make adjustments as needed
4. Deploying queries
Once you’re satisfied with your queries, you can deploy them to make them available via API.
Select a query to deploy
From the Build tab, select the query you want to deploy.
Click the Deploy button
This will add the query to your deployed queries list.
Navigate to the Deploy tab
Here you can see all your deployed queries and access your API endpoints.
Test the API
You can test your deployed query directly from the Deploy page:
- Under “Live APIs,” find your deployed query
- The query parameters (slots) will be available for you to modify
- Click Execute to test the API call
5. Integrating with your application
Using the unified API endpoint
Using the unified API endpoint
Infactory provides a unified entry point API that can route any natural language question to the appropriate query:
The response will include both the structured data results and information about which query was used to answer the question.
Calling specific query endpoints
Calling specific query endpoints
You can also call specific query endpoints directly:
Next Steps
Now that you’ve created your first project with Infactory, explore these guides to learn more:
Working with Data Connections
Learn more about connecting and managing different data sources
Advanced Query Building
Create complex queries that can answer sophisticated questions about your data
API Integration
Explore the full API reference to integrate Infactory with your applications
Best Practices
Tips and techniques for getting the most out of Infactory