Integrate Agentic Workflows into Your Applications Seamlessly
For Developers
Are you looking to add intelligent automation and AI capabilities to your applications without building everything from scratch? The .do SDK is here to help. It's a powerful Software Development Kit designed to make it incredibly easy to integrate and extend the power of .do Agentic Workflows directly within your codebase.
With the .do SDK, you can unlock a world of possibilities. Automate tedious tasks, seamlessly integrate AI models, and deliver complex services as simple software components – all with a few lines of code.
Before diving into the SDK, let's quickly touch upon what an Agentic Workflow is. Agentic Workflows are intelligent, automated processes designed to perform specific tasks or services. They can leverage AI, connect to external APIs, and execute complex logic to deliver outcomes. Think of them as smart agents that can handle specific jobs for you.
The .do SDK acts as your gateway to these powerful workflows. It provides a streamlined and developer-friendly way to interact with them from within your existing applications. No need to worry about low-level API calls or complex integration details – the SDK handles it all for you.
Here's what the .do SDK empowers you to do:
Integrating the .do SDK into your project is straightforward.
1. Installation:
You can install the SDK using popular package managers:
npm install @dot-do/sdk
or
yarn add @dot-do/sdk
2. Basic Usage:
The core of the SDK is the Agent class. You'll use this class to interact with your .do workflows.
import { Agent } from "@dot-do/sdk";
const agent = new Agent("your-api-key"); // Replace with your actual API key
async function summarizeText(text: string) {
try {
const response = await agent.do("summarize", { text });
console.log("Summarized Text:", response.data);
} catch (error) {
console.error("Error summarizing text:", error);
}
}
// Example usage:
summarizeText("This is a very long piece of text that needs to be summarized using an agentic workflow.");
In this example, we instantiate an Agent with our API key. Then, we use the agent.do() method to call a .do workflow named "summarize," passing the text we want to summarize as a parameter. The SDK handles the communication with the .do platform and returns the result.
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 is your key to unlocking the power of agentic workflows within your applications. Whether you're automating internal processes, building intelligent features for your users, or delivering complex services, the SDK makes it easy.
Ready to get started? Install the SDK and explore the possibilities at sdk.do.
<p>A Software Development Kit (SDK) for integrating and extending platform capabilities.</p>