Build Smarter with the .do SDK
Integrate Agentic Workflows into Your Applications Seamlessly
For Developers
Unlock the power of .do Agentic Workflows within your applications using the .do SDK. Easily automate tasks, integrate AI, and deliver services-as-software with simple API calls.
A Software Development Kit (SDK) for integrating and extending platform capabilities.
Agentic workflows are revolutionizing how we think about automation, leveraging the power of AI to perform complex tasks and make intelligent decisions. While interactive interfaces are great, the real power for developers often lies in programmatic control. This is where the .do SDK shines, allowing you to integrate and manage these powerful workflows directly within your own applications.
Imagine being able to trigger intricate AI-powered processes, retrieve results, and seamlessly weave them into your Existing codebase. The .do SDK makes this a reality, providing a developer-friendly interface to interact with all your .do Agentic Workflows.
Whether you're building a backend service that needs to summarize long texts, a frontend application that needs to generate creative content, or a complex system that orchestrates multiple AI agents, the .do SDK provides the tools you need to achieve your goals.
How the .do SDK Works
The core of the .do SDK is the Agent class. This class acts as your gateway to your .do workflows. By initializing an Agent instance with your API key, you gain the ability to call any of your defined .do workflows by name.
Let's look at a simple example:
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 example, we import the Agent class from the @dot-do/sdk package, create a new agent instance, and then define an asynchronous function summarizeText. This function uses the agent.do() method to call a workflow named "summarize", passing in the text we want to process. The SDK handles the communication with the .do platform, executes the workflow, and returns the result, which we then log to the console.
This simple example demonstrates the elegance and ease of use of the .do SDK. You call a workflow by its name, pass in the required parameters as an object, and receive the output directly in your code.
Installing the SDK
Getting started with the .do SDK is straightforward. You can install it using popular package managers like npm or yarn:
npm install @dot-do/sdk
or
yarn add @dot-do/sdk
Once installed, you're ready to start integrating Agentic Workflows into your applications.
Benefits of Using the .do SDK
Use Cases
The possibilities with the .do SDK are vast. Here are a few examples of how you can leverage its capabilities:
Get Started Today
The .do SDK empowers you to build smarter, more efficient, and AI-powered applications. By providing a simple and powerful way to interact with Agentic Workflows programmatically, the SDK unlocks new possibilities for automation and innovation.
Visit sdk.do to learn more, access the full documentation, and start building with the .do SDK today.
FAQs
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.