Integrate Agentic Workflows into Your Applications Seamlessly
For Developers
The world of software development is constantly evolving, and with the rise of AI and intelligent automation, the concept of "Services-as-a-Software" is becoming increasingly relevant. Imagine being able to bake complex business processes, AI capabilities, and external services directly into your application's core, accessible through simple API calls. This is where the .do SDK comes in.
The @dot-do/sdk is a powerful Software Development Kit designed to unlock the full potential of .do Agentic Workflows within your applications. Forget about building intricate integrations from scratch or managing complex asynchronous operations. The .do SDK provides a streamlined, developer-friendly way to consume and orchestrate intelligent workflows, allowing you to deliver services directly as a fundamental part of your software.
.do Agentic Workflows are essentially intelligent, automated processes that can perform tasks, interact with various systems, and leverage AI capabilities. They can range from simple data transformations to complex multi-step operations involving external APIs, databases, and machine learning models. Think of them as modular, reusable blocks of functionality that can be triggered and managed programmatically.
The .do SDK acts as your gateway to these powerful workflows. By integrating the SDK into your application, you gain the ability to:
The core of the .do SDK is the Agent class. This class allows you to connect to the .do platform using your API key and then call specific workflows by their designated name.
import { Agent } from "@dot-do/sdk";
const agent = new Agent("your-api-key");
async function summarizeText(text: string) {
const response = await agent.do("summarize", { text });
console.log(response.data);
}
summarizeText("Your long text here...");
In this simple example, we initialize an Agent with an API key. Then, we define a function summarizeText that uses the agent.do() method to call a workflow named "summarize", passing the text as a parameter. The SDK handles the request and returns the response from the workflow.
Getting started with the .do SDK is straightforward:
Install the SDK: Use your preferred package manager:
npm install @dot-do/sdk or yarn add @dot-do/sdk
Import and Initialize: Import the Agent class and initialize it with your API key.
Call Workflows: Use the agent.do() method to call your desired workflows, passing in any necessary parameters.
The .do SDK is designed with developers in mind. It provides a clean, intuitive API and is compatible with both backend (Node.js) and frontend (browser) environments. This flexibility allows you to integrate .do workflows into a wide range of applications, from server-side APIs to interactive web applications.
What is the @dot-do/sdk?
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.
How do I install the SDK?
You can install the SDK using popular package managers like npm or yarn:
npm install @dot-do/sdk or yarn add @dot-do/sdk
How do I use the SDK to interact with .do workflows?
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.
Can I use the SDK in both backend and frontend applications?
Yes, the SDK is designed to be used in both backend (Node.js) and frontend (browser) environments.
The .do SDK represents a significant step towards building smarter, more capable applications by making it easy to integrate and leverage Agentic Workflows. By embracing the concept of Services-as-Software, developers can unlock new possibilities for automation, AI integration, and the delivery of sophisticated functionalities directly within their software. Get started with the .do SDK today and revolutionize how you build and deliver software.