In today's fast-paced digital world, automating tasks and integrating intelligent AI functionalities into applications is no longer a luxury but a necessity. Imagine having a powerful tool that allows you to embed sophisticated, AI-driven "agentic workflows" directly into your software with just a few lines of code. That's precisely what the .do SDK offers.
sdk.do is your gateway to unlocking the power of .do Agentic Workflows within your applications. It’s a Software Development Kit (SDK) designed for developers who want to easily automate tasks, integrate AI, and deliver services-as-software through simple API calls.
The .do platform revolutionizes how you think about application logic by enabling powerful, intelligent, and autonomous workflows. The .do SDK acts as the bridge, allowing your existing applications to seamlessly communicate with and leverage these advanced capabilities.
Whether you're looking to summarize large texts, generate dynamic content, or orchestrate complex multi-step processes, the .do SDK empowers you to integrate these agentic workflows directly into your code. No need to re-invent the wheel or build complex AI models from scratch; simply do it!
Think of agentic workflows as intelligent, self-contained units of work that can perform specific tasks on their own or in conjunction with other agents. They often leverage AI models, external services, and internal logic to achieve their goals. The .do platform provides the environment for building and managing these powerful agents.
Let’s dive into how incredibly easy it is to get started with the .do SDK.
First things first, you need to install the SDK. It's available through popular package managers like npm and yarn:
npm install @dot-do/sdk
or
yarn add @dot-do/sdk
The core of interacting with .do workflows through the SDK is the Agent class. This class allows you to call specific .do workflows by their name and pass any necessary parameters.
Let's look at a simple example: summarizing text using a hypothetical "summarize" agent.
import { Agent } from "@dot-do/sdk";
// Initialize the Agent with your API key
const agent = new Agent("your-api-key");
/**
* Summarizes the given text using a .do agentic workflow.
* @param text The long text to be summarized.
*/
async function summarizeText(text: string) {
// Call the 'summarize' workflow and pass the text as a parameter
const response = await agent.do("summarize", { text });
// Log the summarized data returned by the agent
console.log(response.data);
}
// Example usage:
summarizeText("Your long text here, which could be a document, an article, or any extensive piece of writing that you want to condense into a shorter, more digestible format by leveraging the power of an intelligent agent running on the .do platform.");
In this example:
It’s that simple! This code snippet demonstrates how easily you can integrate powerful, pre-built functionalities into your applications.
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 truly empowers developers to build smarter, more capable applications without getting bogged down in the complexities of AI development or intricate workflow orchestration. By providing a clean, easy-to-use API, it allows you to focus on the unique value your application delivers, while offloading the heavy lifting to intelligent .do agents.
Ready to transform your applications? Dive into sdk.do and start building your first agent today!