Getting Started
Setup
All of the .do
SDKs are installed as dependencies of the workflows.do
package, so you only need to install one package to get started:
npm i workflows.do
Then get your API key and set it in an environment variable:
DO_API_KEY=sk_do_*****************************
Usage
Then you can use any of the packages like:
import { ai } from 'functions.do'
import { db } from 'database.do'
const ideas = await db.ideas.search('agentic workflows')
const brands = await Promise.all(
ideas.map(idea => ai.storyBrand({ idea }))
)
console.log(brands)
Last updated on