Skip to main content

Official Python SDK for the EolasFlow Voice AI API

Project description

EolasFlow Python SDK

Official Python client for the EolasFlow Voice AI API.

Installation

pip install eolasflow

Quick Start

from eolasflow import EolasFlow

client = EolasFlow(api_key="your-api-key")

# List your VoiceFlows
voiceflows = client.voiceflows.list()
for vf in voiceflows:
    print(f"{vf.name} ({vf.status})")

# Make an outbound call
result = client.calls.create(
    to_number="+353851234567",
    from_number="+35319079387",
    voiceflow_id="vf_abc123",
    customer_data={"name": "John", "reason": "appointment reminder"},
)

# Create a contact
contact = client.contacts.create(
    name="Jane Doe",
    phone="+353851234567",
    email="jane@example.com",
    company="Acme Corp",
    tags=["lead", "demo-requested"],
)

# Get call transcript and analysis
transcript = client.calls.get_transcript("call_abc123")
print(transcript.summary)

analysis = client.calls.get_analysis("call_abc123")
for item in analysis.action_items:
    print(f"- {item['item']} ({item.get('priority', 'normal')})")

# Search contacts
results = client.contacts.list(search="John")

# Find contact by phone
contact = client.contacts.find_by_phone("+353851234567")

# Manage webhooks
webhook = client.webhooks.create(
    url="https://your-app.com/webhooks/eolasflow",
    events=["call.completed", "call.started"],
)

# Add contacts to a VoiceFlow for outbound
client.voiceflows.add_contacts("vf_abc123", [
    {"phone": "+353851234567", "name": "John Doe"},
    {"phone": "+353861234567", "name": "Jane Smith"},
])

Context Manager

with EolasFlow(api_key="your-api-key") as client:
    calls = client.calls.list()

Async Support

from eolasflow.client import AsyncEolasFlow

async with AsyncEolasFlow(api_key="your-api-key") as client:
    calls = client.calls.list()
    contact = client.contacts.create(name="Jane", phone="+353851234567")

Resources

Resource Methods
client.calls create, list, get, get_transcript, get_analysis, get_recording
client.contacts create, get, find_by_phone, list, update, delete, bulk_import
client.voiceflows list, get, get_stats, create, update, delete, start, pause, add_contacts
client.webhooks create, list, delete
client.phone_numbers list

Error Handling

from eolasflow import EolasFlow, AuthenticationError, RateLimitError, NotFoundError

client = EolasFlow(api_key="your-api-key")

try:
    call = client.calls.get("nonexistent")
except NotFoundError:
    print("Call not found")
except RateLimitError as e:
    print(f"Rate limited. Retry after {e.retry_after}s")
except AuthenticationError:
    print("Invalid API key")

License

MIT

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

eolasflow-0.1.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

eolasflow-0.1.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file eolasflow-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for eolasflow-0.1.0.tar.gz
Algorithm Hash digest
SHA256 782073fada8caad6f221c1cfb9388ec0dfe4dbd64eb239fcda708a892329c91d
MD5 dff4bebb1e568379236e1e36c69c43da
BLAKE2b-256 1642174fae3a8b099c6c738172b430d1f046a5893a216c0c130627af33894425

See more details on using hashes here.

Provenance

The following attestation bundles were made for eolasflow-0.1.0.tar.gz:

Publisher: publish-python.yml on eolasflow/eolasflow-sdk

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

File details

Details for the file eolasflow-0.1.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for eolasflow-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd23dd197fa6e392a505701bffc55e82da53638d11d2daa359c3b9ae17fce6b0
MD5 a4c29ae401315a81e5d8fb1344d48e6a
BLAKE2b-256 a3cd45db0436175d051527826917343013b1400f825ed7860b7adbce85e961b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for eolasflow-0.1.0-py3-none-any.whl:

Publisher: publish-python.yml on eolasflow/eolasflow-sdk

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 Pingdom Monitoring Sentry Error logging StatusPage Status page