dodo
An AI workflow automation engine for browser automation, RPA, testing, and more.
Built for frameworks like webtask.
Installation
pip install dodoai
pip install dodoai[gemini] # With Gemini support
Overview
from dodo import Agent, Gemini
agent = Agent(llm=Gemini(), tools=[...])
# First time - LLM figures out the workflow
run = await agent.do("add item to cart")
# Later - replay without LLM (fast & cheap)
await agent.redo(run)
Core Concepts
Two simple methods for workflow automation:
do(task)- Execute workflow steps with LLM reasoningredo(run)- Replay recorded workflows without LLM
Features
Stateful workflows
Agent remembers context across multiple steps:
# Multi-step workflow with context
await agent.do("search for laptop on Amazon")
await agent.do("add the first result to cart")
await agent.do("proceed to checkout")
Efficient replay
Record once, replay when environment is similar:
# First time - LLM figures out the workflow (expensive)
run = await agent.do("add laptop to cart and checkout")
# Later - replay the same workflow (cheap)
await agent.redo(run)
Structured output
Get typed results using Pydantic models:
from pydantic import BaseModel
class ProductInfo(BaseModel):
name: str
price: float
in_stock: bool
run = await agent.do("extract product information", output_schema=ProductInfo)
product = run.output # Typed ProductInfo object
Use Cases
Browser automation:
# Automate web workflows
await agent.do("go to linkedin.com")
await agent.do("search for software engineers in SF")
await agent.do("message the first 5 results")
RPA (Robotic Process Automation):
# Automate repetitive workflows
await agent.do("login to portal")
await agent.do("navigate to reports section")
await agent.do("download monthly report")
Testing & QA:
# Record test cases, replay for regression
run = await agent.do("complete checkout flow")
# Regression test
await agent.redo(run)
Building Workflows
1. Define tools
Tools are the actions your agent can perform:
from dodo import tool
@tool
async def click_button(element_id: str) -> str:
"""Click a button on the page.
Args:
element_id (str): ID of button to click
"""
# Your automation logic
return "Button clicked"
@tool
class DatabaseTool:
"""Query the database."""
def __init__(self, db_connection):
self.db = db_connection
async def run(self, query: str) -> str:
"""
Args:
query (str): SQL query to execute
"""
return self.db.execute(query)
2. Define observation
Observation provides context to the agent:
async def observe():
"""Return current state for the agent to see."""
return [
f"Current page: {browser.current_url}",
f"Visible elements: {browser.get_elements()}",
]
3. Create and run agent
from dodo import Agent, Gemini
agent = Agent(
llm=Gemini(),
tools=[click_button, DatabaseTool(db)],
observe=observe
)
# Execute workflows
run = await agent.do("click login button and verify")
if run.output:
print("Workflow succeeded!")
4. Handle errors
from dodo import TaskAbortedError
try:
await agent.do("impossible task")
except TaskAbortedError as e:
print(f"Workflow aborted: {e}")
Run Objects
Every do() call returns a Run object with full execution details:
run = await agent.do("complete checkout")
run.output # Structured output (if output_schema provided)
run.feedback # Brief summary: "Checkout completed successfully"
run.action_log # Detailed trace of all actions taken
run.messages # Full conversation history
run.steps_used # Number of LLM calls made
Supported LLMs
from dodo import Gemini
# Gemini models
agent = Agent(llm=Gemini(model="gemini-2.0-flash-exp"))
agent = Agent(llm=Gemini(model="gemini-2.5-pro"))
Custom LLM:
from dodo import LLM
class MyLLM(LLM):
async def call_tools(self, messages, tools):
# Your LLM implementation
pass
Examples
- webtask - Browser automation framework built on dodo
License
MIT
Metadata
Release files for dodoai 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dodoai-0.1.4.tar.gz | 22.4 kB | With provenance | Details for dodoai-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dodoai-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for dodoai-0.1.4-py3-none-any.whl |
Total release size: 49.3 kB
Release files / dodoai-0.1.4.tar.gz
| Download URL | dodoai-0.1.4.tar.gz |
|---|---|
| Size | 22.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db77d62ab6a9314f82b559c375c4e113c0f923354f0426c9386f7580aa68509f
|
|
BLAKE2b-256 checksum How to use checksums |
60b7f0d6d16ac5093d5dc0dda189fdf21978ee7d6cb5efdce8eaea87dd9d64fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2025.
Transparency logRelease files / dodoai-0.1.4-py3-none-any.whl
| Download URL | dodoai-0.1.4-py3-none-any.whl |
|---|---|
| Size | 26.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b441b0a0399a1dfb9ae7b283011128a18abf0e39d7e0d91a14b733504f351d62
|
|
BLAKE2b-256 checksum How to use checksums |
f54d53e64955647e3f23c46abf6b8aca88ddf72166e661640b69cc5d35de8834
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2025.
Transparency logSecurity for dodoai 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for dodoai-0.1.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.