This library allows you to build Guava voice agents using TypeScript or Javascript. Currently only NodeJS is officially supported as a runtime.
Full documentation for the TypeScript SDK can be found at https://goguava.ai/docs/. SDK examples can be found under ./examples/.
Log in using the Guava CLI:
guava loginAlternatively, provide an API key through an environment variable.
$ export GUAVA_API_KEY="..." # Your API key for authentication.
$ export GUAVA_AGENT_NUMBER="..." # A phone number for your agent to use.Run an outbound phone call example using npx. Replace the phone number with your own and your agent will call you.
$ npx @guava-ai/guava-sdk@latest scheduling-outbound phone +15556667777 # Your agent will call this number.Install the SDK using your preferred package manager.
$ npm install @guava-ai/guava-sdk
$ yarn add @guava-ai/guava-sdk
$ pnpm add @guava-ai/guava-sdkThe SDK can be used with Javascript, but TypeScript is highly recommended.