Integrate Agentic Workflows into Your Applications Seamlessly
For Developers
</br><p>A Software Development Kit (SDK) for integrating and extending platform capabilities.</p>Unlock the power of .do Agentic Workflows within your applications using the .do SDK. Easily automate tasks, integrate AI, and deliver services-as-software with simple API calls.
The .do platform is all about creating powerful, automated workflows that can be easily triggered and utilized. But what if you want to leverage these intelligent "agentic workflows" directly within your own applications, services, or scripts? That's where the @dot-do/sdk comes in.
The @dot-do/sdk provides a clean and intuitive way to connect your code to the power of .do functions. Think of it as a bridge that allows your applications to outsource complex tasks, AI integrations, and services-as-software to your pre-built and optimized .do workflows.
Integrating agentic workflows directly into your applications offers several compelling advantages:
Using the @dot-do/sdk is straightforward. First, you need to install it in your project. The SDK is available on popular package managers:
npm install @dot-do/sdk
or
yarn add @dot-do/sdk
Once installed, you can start interacting with your .do workflows. The core of the SDK is the Agent class. You'll need your .do API key to authenticate and interact with your workflows.
Here's a simple example demonstrating how to call a .do workflow named summarize and pass it some text:
import { Agent } from "@dot-do/sdk";
const agent = new Agent("your-api-key");
async function summarizeText(text: string) {
const response = await agent.do("summarize", { text });
console.log(response.data);
}
summarizeText("Your long text here...");
In this example:
The @dot-do/sdk essentially acts as a wrapper around the .do platform's API. When you call agent.do("workflow_name", { parameters }), the SDK makes a secure request to the .do platform, triggering the specified workflow with the provided input. The SDK then receives the output from the workflow and provides it back to your application.
The @dot-do/sdk is designed to be flexible and can be used in both:
What is the @dot-do/sdk?
The @dot-do/sdk is a Software Development Kit that allows you to easily integrate and interact with .do Agentic Workflows directly within your applications using simple APIs and SDKs.
How do I install the SDK?
You can install the SDK using popular package managers like npm or yarn:
npm install @dot-do/sdk or yarn add @dot-do/sdk
How do I use the SDK to interact with .do workflows?
The core of the SDK is the Agent class, which allows you to call .do workflows by name and pass in necessary parameters. The SDK handles the communication and returns the results from the workflow.
Can I use the SDK in both backend and frontend applications?
Yes, the SDK is designed to be used in both backend (Node.js) and frontend (browser) environments.
The @dot-do/sdk empowers developers to easily integrate the power of .do Agentic Workflows into their applications. Whether you're looking to automate tasks, add AI capabilities, or build services-as-software, the SDK provides a straightforward and efficient way to connect your code to your .do functions. Start building smarter and unlock new possibilities by leveraging the .do SDK today!