Onboarding
Connect your Node.js project to Conversa and make your first API call in under five minutes.
Prerequisites
- Node.js 18 or later
- A Conversa API key — sign up free
- Git installed and configured (
git config --global user.name)
Step 1 — Create a project
mkdir -p conversa-app-onboarding && cd conversa-app-onboarding && npm init -y
Step 2 — Install dependencies
npm install node-fetch dotenv
added 2 packages in 0.9s
Step 3 — Install the SDK
npm install conversa-sdk
added 1 package in 0.8s
Step 4 — Write your first call
Create index.js:
const { createClient } = require('conversa-sdk');
require('dotenv').config();
const client = createClient(process.env.CONVERSA_API_KEY, {
endpoint: process.env.CONVERSA_ENDPOINT
});
client.summarise('wildlife-elephants').then(console.log);
Step 5 — Run
node index.js
{ status: 'ok', summary: '...' }
Next: See Authentication → to add your API key.