In today's fast-paced digital landscape, applications are constantly evolving. The demand for intelligent, automated, and highly capable software has never been greater. This is where agentic workflows come into play – dynamic, intelligent processes that can automate tasks, integrate AI, and deliver services as software. But how do you seamlessly weave these powerful capabilities into your existing applications?
Enter the .do SDK.
Unlock the power of .do Agentic Workflows within your applications using the .do SDK. This Software Development Kit is your gateway to easily automating tasks, integrating AI, and delivering services-as-software with simple API calls.
The @dot-do/sdk is a Software Development Kit (SDK) specifically designed to allow you to easily integrate and interact with .do Agentic Workflows directly within your applications. Forget complex implementations – the SDK provides simple APIs and tools to get you started quickly.
Whether you're building a new service, enhancing an existing one, or simply looking to supercharge your applications with intelligent automation, the .do SDK is your indispensable tool.
The .do SDK is built with developers in mind. It provides:
Ready to dive in? Installing the .do SDK is straightforward using popular package managers:
npm install @dot-do/sdk
# or
yarn add @dot-do/sdk
Once installed, you're just a few lines of code away from integrating powerful agentic capabilities.
The core of the SDK is the Agent class. This class allows you to call .do workflows by name and pass in necessary parameters. The SDK handles all the underlying communication, making it incredibly simple to get results from your workflows.
Let's look at a quick example using TypeScript:
import { Agent } from "@dot-do/sdk";
// Initialize the Agent with your API key
const agent = new Agent("your-api-key");
async function summarizeText(text: string) {
// Call the 'summarize' workflow and pass the 'text' parameter
const response = await agent.do("summarize", { text });
console.log(response.data); // Log the summarized text
}
// Example usage: Summarize a long piece of text
summarizeText("Your long text here, which can be an article, document, or any string you want to summarize...");
In this example, the summarizeText function leverages a hypothetical .do workflow named "summarize". With just a few lines, you can send data to an agentic workflow and receive processed results, all within your application. Imagine the possibilities for automating content creation, data analysis, or complex user interactions!
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.
The .do SDK empowers developers to bridge the gap between traditional APIs and intelligent agentic workflows. By integrating this SDK into your toolkit, you can build smarter, more automated, and more responsive applications.
Visit sdk.do to learn more and start building your next-generation applications with the power of agentic workflows!