Getting Started with Temporal
OpenBox integrates with Temporal via a drop-in plugin — your workflows, activities, and agent logic stay exactly as they are.
Try it out
Add OpenBox to your Temporal workers in 4 simple steps.
1. Register your Agent
Log in to the OpenBox Dashboard to create your agent. You'll get an API Key to secure your integration.
Add Agent
Name: Customer Support Agent
Workflow: Temporal
API Key:
obx_live_••••••••One Code Change
Add the OpenBox plugin to your existing Worker:
- Temporal
- OpenBox
worker.py
import asyncio
from temporalio.client import Client
from temporalio.worker import Worker
from your_workflows import YourWorkflow
from your_activities import your_activity
async def main():
client = await Client.connect("localhost:7233")
worker = Worker(
client,
task_queue="agent-task-queue",
workflows=[YourWorkflow],
activities=[your_activity],
)
await worker.run()
asyncio.run(main())
worker.py
import os
import asyncio
from temporalio.client import Client
from temporalio.worker import Worker
from openbox.plugin import OpenBoxPlugin # Add OpenBox
from your_workflows import YourWorkflow
from your_activities import your_activity
async def main():
client = await Client.connect("localhost:7233")
worker = Worker(
client,
task_queue="agent-task-queue",
workflows=[YourWorkflow],
activities=[your_activity],
# Add OpenBox plugin
plugins=[OpenBoxPlugin(
openbox_url=os.getenv("OPENBOX_URL"),
openbox_api_key=os.getenv("OPENBOX_API_KEY"),
)],
)
await worker.run()
asyncio.run(main())
Choose Your Path
I already use Temporal
Add the trust layer to your existing agent in 5 minutes. Install the package, add the plugin, and your agent is governed.
I'm new to Temporal
Learn the core concepts (Workflows, Activities, Workers), then run the demo to see OpenBox in action.
Run the Demo
Clone, configure, and run the reference demo end-to-end.