For Developers
In today's rapidly evolving digital landscape, automation and intelligent integration are key to building powerful, scalable applications. Imagine being able to infuse your software with the ability to perform complex, agentic tasks with just a few lines of code. This is exactly what the .do SDK empowers you to do.
The .do SDK (Software Development Kit) is your gateway to unlocking the full potential of .do Agentic Workflows directly within your own applications. Whether you're looking to automate tedious processes, seamlessly integrate AI functionalities, or deliver sophisticated services-as-software, the .do SDK makes it remarkably simple.
At its core, an agentic workflow is a self-contained, intelligent process designed to achieve a specific goal. Imagine a process that can understand natural language, make decisions, interact with various APIs, and even learn over time. By integrating these workflows, your applications move beyond static functionality and embrace dynamic, intelligent behavior.
The .do SDK provides the crucial bridge between your application and these powerful agentic capabilities. It abstracts away the complexity of communicating with the underlying .do platform, allowing you to focus on building features, not infrastructure.
The possibilities are vast when you integrate agentic workflows into your software:
Ready to dive in? Here’s how you can begin integrating the .do SDK into your project.
The @dot-do/sdk is easily installable using your preferred package manager.
npm install @dot-do/sdk
# or
yarn add @dot-do/sdk
The core of the SDK is the Agent class, which allows you to interact with .do workflows by name.
Let's look at a simple example of how to use the SDK to summarize text:
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); // This will output the summarized text
}
summarizeText("Your long text here, which you want to be summarized by an agentic workflow...");
In this code snippet:
The versatility of the .do SDK means you can leverage it in a variety of environments:
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 is more than just a library; it's a powerful tool that empowers developers to build smarter, more automated, and more intelligent applications with unprecedented ease. By abstracting the complexities of agentic workflows, it allows you to focus on innovation and delivering value.
Visit sdk.do to get your API key and explore more documentation, examples, and advanced features. Start building the future of intelligent applications today!