Skip to main content

Official Dial LangChain tools — phone numbers, SMS, WhatsApp, and voice calls for AI agents

Project description

dial-langchain

Official LangChain tools for Dial — phone numbers, SMS, WhatsApp, and voice calls for AI agents.

Install

pip install dial-langchain
# or
uv add dial-langchain

This pulls in dial-sdk and langchain-core automatically. Requires Python 3.11+.

Quickstart

Each Dial capability is a LangChain BaseTool. Construct it with your API key (and optional base_url) and hand it to an agent:

from dial_langchain import (
    ListNumbersTool,
    SendMessageTool,
    MakeCallTool,
    ListCallsTool,
    GetCallTool,
    WaitForMessageTool,
)

tools = [
    ListNumbersTool(api_key="sk_live_..."),
    SendMessageTool(api_key="sk_live_..."),
    MakeCallTool(api_key="sk_live_..."),
]

# Drop into any LangChain agent:
from langchain.agents import create_react_agent
agent = create_react_agent(model, tools, prompt)

base_url defaults to https://getdial.ai; override it for local or self-hosted setups.

Available tools

Tool Tool name (for the LLM)
ListNumbersTool list_numbers
PurchaseNumberTool purchase_number
SetNumberPropertiesTool set_number_properties
ListMessagesTool list_messages
SendMessageTool send_message
ListCallsTool list_calls
MakeCallTool make_call
GetCallTool get_call
WaitForMessageTool wait_for_message

Each tool wraps the corresponding dial-sdk call under the hood.

Related

Project details


Download files

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

Source Distribution

dial_langchain-0.5.0.tar.gz (123.6 kB view details)

Uploaded Source

Built Distribution

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

dial_langchain-0.5.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file dial_langchain-0.5.0.tar.gz.

File metadata

  • Download URL: dial_langchain-0.5.0.tar.gz
  • Upload date:
  • Size: 123.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dial_langchain-0.5.0.tar.gz
Algorithm Hash digest
SHA256 9686db2064b9ea5ebee8a6d8f5a4b49b8f390c0eb2e438c9f442722357a03f76
MD5 43cc8ce4e0636c545f542d71a03d035b
BLAKE2b-256 a9f1c995ec40cbd1816ff28cf78a1a91498b20c534a91ac778c72956fe9d415e

See more details on using hashes here.

File details

Details for the file dial_langchain-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: dial_langchain-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dial_langchain-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ed1be9071b306ab806df5728283324abe7b94c10a5936c1c5e5793c27cc5898
MD5 be9fb6c423e6c30b1b1b7fd6d7f9778f
BLAKE2b-256 80dcf752ecae6972ef4c34ba4c760b816cb9cc71b5fcf882ea5cded8fcc84304

See more details on using hashes here.

Supported by

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