(For Developers)
In today's fast-paced digital landscape, the ability to automate tasks and integrate intelligent systems directly into your applications is no longer a luxury – it's a necessity. This is where the .do SDK comes in. Designed with developers in mind, the @dot-do/sdk empowers you to seamlessly weave powerful Agentic Workflows into your projects, unlocking new levels of efficiency and functionality.
The .do SDK is a Software Development Kit that serves as your gateway to the robust .do platform. It allows you to integrate and interact with pre-built or custom .do Agentic Workflows directly within your applications. Think of it as a bridge that connects your code to intelligent actions, allowing you to automate tasks, leverage AI capabilities, and deliver services-as-software with just a few lines of code.
The power of the .do SDK lies in its simplicity and versatility. Here's a quick rundown of its key benefits:
Ready to dive in? Installing the .do SDK is quick and easy. You can use your favorite package manager:
npm install @dot-do/sdk
# or
yarn add @dot-do/sdk
Once installed, interacting with .do workflows is as simple as creating an Agent instance and calling your desired workflow. Let's look at a practical example: summarizing text, a common requirement in many applications.
import { Agent } from "@dot-do/sdk";
const agent = new Agent("your-api-key"); // Replace with your actual API key
async function summarizeText(text: string) {
const response = await agent.do("summarize", { text });
console.log(response.data); // Outputs the summarized text
}
summarizeText("Your long text here, which you want the .do platform to summarize for you using its agentic workflow capabilities.");
In this code snippet:
This simple example highlights the power and ease of integrating complex functionalities directly into your application. Imagine extending this to automate customer support responses, generate personalized reports, or process large datasets!
The "summarize" workflow is just one example. The .do platform supports a wide array of agentic workflows, and you can even define your own to suit specific needs. The .do SDK provides the consistent interface to interact with all of them.
Whether you're building a new application from scratch or enhancing an existing one, the .do SDK offers a powerful and efficient way to integrate intelligent automation and AI capabilities.
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.
You can install the SDK using popular package managers like npm or yarn:
npm install @dot-do/sdk or yarn add @dot-do/sdk
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.
Yes, the SDK is designed to be used in both backend (Node.js) and frontend (browser) environments.
Ready to enhance your applications with seamless automation and AI? Explore the .do SDK today and start building smarter! Visit sdk.do to learn more.