Quickstart
This guide will show you how to call your first Inconvo Data Agent.
-
Create an Inconvo Account
You can sign up for a free account here.
-
Create your first Data Agent
Once you’ve created an account, follow the steps in the app to:
- Complete your account details.
- Create your first Data Agent.
-
Install Inconvo SDK
If you need to initialize a project run:
Terminal window mkdir inconvo-quickstart && cd inconvo-quickstart && npm init -yInstall the Inconvo SDK to your project by running the following command in your terminal.
Terminal window npm i @inconvoai/node dotenv -
Obtain an API key & Agent ID
- Navigate to the Inconvo Dashboard.
- Copy your Agent ID from the sidebar.
- Paste your Agent ID into your
.envfile. - Create an API key.
- Paste your Inconvo API key into your
.envfile.
.env INCONVO_API_KEY=***INCONVO_AGENT_ID=***
-
Write code for calling Data Agent
We’ll write the minimal code for starting a conversation with the Data Agent and sending a message to elicit a response.
index.ts import "dotenv/config";import { randomUUID } from "node:crypto";import Inconvo from "@inconvoai/node";const inconvo = new Inconvo({apiKey: process.env.INCONVO_API_KEY,});async function main() {const agentConvo = await inconvo.agents.conversations.create(process.env.INCONVO_AGENT_ID!,{userIdentifier: randomUUID().toString(),userContext: {organisationId: 1,}, // NOTE: This is userContext for DemoAgent - change as needed},);const agentResponse = await inconvo.agents.conversations.response.create(agentConvo.id!,{agentId: process.env.INCONVO_AGENT_ID!,message: "Hello agent!",stream: false,},);console.log(agentResponse);}main().catch(console.error); -
Call your first Data Agent
Terminal window npx tsx ./index.ts
Next Steps
Section titled “Next Steps”Now that you have a working Data Agent, explore more capabilities:
- Render responses - Display text, charts and tables on your front-end
- Customize the agent - Use the semantic model to define how data should be understood and accessed by your agent.
- Explore a sample app - A practical demonstration of integrating Inconvo in your codebase.