Getting started

Quickstart

Connect your first source, run a query, and ship a workflow — in 10 minutes.

1. Install

npm install @entilla/sdk
# or
pip install entilla

2. Authenticate

import { Entilla } from "@entilla/sdk";
const entilla = new Entilla({ apiKey: process.env.ENTILLA_KEY });

3. Connect a source

Connectors are managed in the dashboard or programmatically.

await entilla.connectors.create({
  type: "slack",
  scope: { channels: ["#sales", "#deals-*"] },
  retentionDays: 365
});

4. Ask a question

const answer = await entilla.ask("What is the status of Acme renewal?", {
  cite: true
});
console.log(answer.text, answer.citations);

5. Ship a workflow

Workflows are versioned, evaluated, and deployable behind flags.

entilla.workflow("renewal_brief")
  .input({ account: "string" })
  .step("gather", ctx => entilla.ask(`Renewal context for ${ctx.account}`))
  .step("draft", ctx => entilla.compose("renewal_brief", ctx.gather))
  .deploy({ env: "staging" });

Next