In today's data-driven world, efficiently processing and analyzing information is paramount. Whether you're building a reporting tool, an internal data pipeline, or a customer-facing analytical application, the ability to automate these tasks can significantly boost productivity, reduce errors, and accelerate insights. This is where the .do SDK shines, empowering developers to seamlessly integrate powerful agentic workflows for data processing and analysis directly into their applications.
The .do SDK (@dot-do/sdk) is your gateway to leveraging sophisticated agentic workflows within your own code. Imagine having intelligent agents handling the heavy lifting of data cleaning, transformation, summarization, or even complex analytical computations, all accessible via simple API calls. That's the power the .do SDK puts in your hands.
Agentic workflows are pre-built, smart processes designed to perform specific tasks, often leveraging AI and various services under the hood. For data tasks, this could mean an agent designed to:
The beauty of the .do SDK is that you don't need to build these complex logic flows yourself. You simply call the relevant ".do" agent, pass your data, and receive the processed results.
Let's look at a practical example of how simple it is to integrate a data-centric task, like text summarization, using the .do SDK:
import { Agent } from "@dot-do/sdk";
const agent = new Agent("your-api-key"); // Replace with your actual API key
async function summarizeText(text: string) {
// Call the 'summarize' agent with your text data
const response = await agent.do("summarize", { text });
console.log(response.data); // Log the summarized text
}
summarizeText("Your long text here, which might be a document, an article, or a transcript from a meeting that you need to condense into key points for quick consumption.");
In this TypeScript example, we initialize an Agent with an API key. Then, we call the do method, specifying the "summarize" workflow and passing our text. The SDK handles the communication with the .do platform, executes the agentic workflow, and returns the summarized output directly to your application.
This simple pattern can be extended to an endless variety of data tasks:
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 transform how your applications handle data? Visit sdk.do to learn more, get your API key, and start building smarter with the .do SDK. Unlock the true potential of automated data processing and analysis.