Skip to main content

A FastAPI server that acts as a TwiML voice agent

Project description

twiml-voice-agents

Minimal Usage

Installing

Run python3 -m pip install twiml-voice-agents

Setup

Anthropic

Get an Anthropic API key.

Set the ANTHROPIC_API_KEY environment variable to your API key.

Square

Get a Square OAuth Token with the following permissions: ...

Set the SQUARE_ACCESS_TOKEN environment variable to your OAuth token

Ngrok

Get an ngrok token

Set the NGROK_AUTHTOKEN environment variable to your auth token

Twilio Telephony

Set up a Twilio phone number to handle incoming calls with a TwiML webhook of your choice. Set the webhook URL to the ngrok domain along with path /call. Set the HTTP method to POST.

Running Server

import twiml_voice_agents as tva
srvr = tva.Server(tva.Conversation)
srvr.run()

Using Agent, Finally

Lastly, call the Twilio phone number you configured.

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

twiml_voice_agents-0.1.5.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

twiml_voice_agents-0.1.5-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file twiml_voice_agents-0.1.5.tar.gz.

File metadata

  • Download URL: twiml_voice_agents-0.1.5.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.34.2

File hashes

Hashes for twiml_voice_agents-0.1.5.tar.gz
Algorithm Hash digest
SHA256 913bcd4cefcbc2ff086de5ad84bb94a93485d6b1a1a0674296cd4734f19778f3
MD5 a2de2a3698acc061277110cfc1a77f6a
BLAKE2b-256 2a10434f6e45279a228f624fcc6442ebc8d2553f89c7259901770e8bef95b4c4

See more details on using hashes here.

File details

Details for the file twiml_voice_agents-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for twiml_voice_agents-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 55a233881709a1499df06bbce56ed2619da43d665f3e4a7173cb48bb1e7084fa
MD5 6337035df83d8b87cadf7eb1e38d282a
BLAKE2b-256 19386227d54318aceaf383a80394eb551ededc85c3337ac6413024061e17f623

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