For Builders

SDKs

Call your agents from any language. Official SDKs for JavaScript/TypeScript, Python and Go — typed, with streaming and file uploads.

Installation

Install the SDK for your language:

# JavaScript / TypeScript
npm install @daguito/sdk

# Python
pip install daguito-sdk

# Go
go get github.com/daguitocontact-lang/go-sdk

Call your agent

Run your agent's webhook with its token and get the response:

// JavaScript / TypeScript
import { runWebhook } from '@daguito/sdk'

const result = await runWebhook({
  apiUrl: 'https://api.daguito.com',
  token: process.env.DAGUITO_WEBHOOK_TOKEN,
  input: { message: 'Hola, ¿tienen envío a Bogotá?' },
})
console.log(result.output)
# Python
from daguito import run_webhook, WebhookRunInput

result = await run_webhook(WebhookRunInput(
    api_url="https://api.daguito.com",
    token=os.environ["DAGUITO_WEBHOOK_TOKEN"],
    input={"message": "Hola, ¿tienen envío a Bogotá?"},
))
print(result.output)

What's next?