Voiceflow Python Package
This is an unofficial Python package for an easy use of the Voiceflow API.
Basic usage
In your virtual environment:
pip install voiceflow
Then in your Python code:
import os
from voiceflow import Voiceflow
vf = Voiceflow(
api_key=os.getenv('VOICEFLOW_API_KEY'),
user_id='abc123'
)
# Launch the agent
vf_response = vf.interact.launch()
# Send a simple text input
vf_response = vf.interact.text(user_input='hello')
Pass the version of your Voiceflow project to contact. It can be development (default) or production.
vf = Voiceflow(
api_key=os.getenv('VOICEFLOW_API_KEY'),
user_id='abc123',
version_id='production'
)
You can also call launch() or text() with your custom config:
vf_response = vf.interact.launch(config={'stripSSML': False})
Default config values:
{
'tts': False,
'stripSSML': True,
'stopAll': True,
'stopTypes': [],
'excludeTypes': [
'block',
'debug',
'flow',
]
}
User State:
# Fetch the user's current state
vf_response = vf.user_state.fetch()
# Delete all state and session data for user.
vf_response = vf.user_state.delete()
# NotImplemented:
# Update the user's current state.
Variables:
variables = {
'test1': 'one',
'test2': 2,
}
vf_response = vf.variables.update(variables=variables)
About this project
This project is created and maintained by:
Daian Gan
Github: daiangan
E-mail: daian@ganmedia.com
Website: https://daiangan.com
Metadata
Release files for voiceflow 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| voiceflow-1.0.6.tar.gz | 4.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| voiceflow-1.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.6 kB
Release files / voiceflow-1.0.6.tar.gz
| Download URL | voiceflow-1.0.6.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f0bfcd8239558d84f6461f72661aed1793082490b383acf646086dc301c3038
|
|
BLAKE2b-256 checksum How to use checksums |
89128f71615c9a9bab5f60c393971654c9b8649aacdf5dfa0954b147b41169ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.8
|
Release files / voiceflow-1.0.6-py3-none-any.whl
| Download URL | voiceflow-1.0.6-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45e7dd0eff3c0d6e9e643f177f03ff11963199c442b384ebb5cd61f0feb25db0
|
|
BLAKE2b-256 checksum How to use checksums |
a7a1ac4077eb986a4a56b2ff7d0027c06e95bb81d589b134183404dac9ed127a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.8
|
Security for voiceflow 1.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.