Skip to main content

dial-crewai

Official Dial tools for CrewAI — give a multi-agent crew the ability to send SMS, receive OTP codes, and place AI voice calls through Dial. Agents automating signups and web tasks get a real phone identity.

It's the CrewAI sibling of dial-langchain: each tool is a crewai.tools.BaseTool subclass wrapping the dial-sdk client. It adds nothing to the REST contract — it just shapes Dial's operations into CrewAI tools.

Install

pip install dial-crewai

This pulls in dial-sdk and crewai.

Give the tools to a crew

Build one DialClient, pass it to dial_tools, and hand the list to an agent. Every tool shares that one client — a single connection pool for the whole crew:

from crewai import Agent, Crew, Task
from dial_sdk import DialClient, DialConfig
from dial_crewai import dial_tools

dial = DialClient(DialConfig(api_key="sk_live_..."))

phone_agent = Agent(
    role="Phone identity agent",
    goal="Send and receive SMS so the crew can complete phone-verified signups",
    backstory="You operate the crew's Dial phone number.",
    tools=dial_tools(dial),
)

DialConfig also takes an optional base_url to target a non-default deployment.

Or pick individual tools

from dial_crewai import SendMessageTool, WaitForMessageTool

tools = [
    SendMessageTool(client=dial),
    WaitForMessageTool(client=dial),
]

Available tools

Each tool takes your shared DialClient (client=):

Tool Action
ListNumbersTool List your phone numbers
PurchaseNumberTool Provision a new number (billable)
SetNumberPropertiesTool Update a number's nickname / inbound instruction
SendMessageTool Send an SMS (optionally MMS)
ReplyToMessageTool Reply or react to a message
ListMessagesTool List recent messages
MakeCallTool Place an AI voice call
ListCallsTool List recent calls
GetCallTool Fetch one call by id
GetBillingTool Credit balance, subscription, per-number mode
WaitForMessageTool Block until the next inbound SMS arrives, or time out

OTP flow

The point of phone identity for a crew: send a code and read the reply. WaitForMessageTool blocks until the next inbound SMS arrives, so an agent can:

  1. trigger a signup that texts a code to your Dial number,
  2. call WaitForMessageTool to read the inbound code,
  3. enter it back into the signup form.

See examples/signup_crew.py for a runnable crew.

Notes

  • The dial-sdk client is async; these tools are sync-first (_run) with an async→sync bridge, and also expose _arun for async crews. The shared client's requests run on a single background event loop, so the connection pool is reused across calls; a sync crew needn't close the client explicitly.
  • SendMessageTool is a write action and isn't idempotent — a re-invoke after a failure can send a duplicate. MakeCallTool accepts an idempotency_key.
  • WaitForMessageTool is backed by Dial's presence-based event stream — for durable, at-least-once delivery, register a webhook.

See the CrewAI integration docs for the full guide.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dial_crewai-0.14.0.tar.gz (261.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dial_crewai-0.14.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file dial_crewai-0.14.0.tar.gz.

File metadata

  • Download URL: dial_crewai-0.14.0.tar.gz
  • Upload date:
  • Size: 261.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dial_crewai-0.14.0.tar.gz
Algorithm Hash digest
SHA256 001a2c4936af181b9051c6f8b8687c15a75b9c772a2513ae1be3d15c3c30d3e9
MD5 f494c4441f3250efa5c987969960fdb4
BLAKE2b-256 73a6d93e9afec5b89868299d6da3a385a371507e2db2c0d74a8085c7e5f50754

See more details on using hashes here.

Provenance

The following attestation bundles were made for dial_crewai-0.14.0.tar.gz:

Publisher: publish-sdk-crewai.yml on GENWAY-AI/dial

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dial_crewai-0.14.0-py3-none-any.whl.

File metadata

  • Download URL: dial_crewai-0.14.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dial_crewai-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 482004a492889497ad39c20bb9739e3149c70d27e10891c90ff04534aae8b1c5
MD5 298abc03139ca7e612e02a4f3f1dce59
BLAKE2b-256 cf9e2e69d1eb0bb662a8ac99eca11e47bf7439b0c4fb1d39e2a9c41edd4f2cf4

See more details on using hashes here.

Provenance

The following attestation bundles were made for dial_crewai-0.14.0-py3-none-any.whl:

Publisher: publish-sdk-crewai.yml on GENWAY-AI/dial

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page