# chatendpoint | ChatrHub
Create custom actions for ChatrHub's automated chat agents https://chatrhub.com. (Create a free account if you dont have one already here: https://chatrhub.com/signup/index.html). Use this module when you want your chat dialog to interface with internal systems such as inventory or user management data stores.
You can pass variables collected in the dialog to the endpoint for processing and you can also pass variables back to the dialog to display to the user.
## Prerequisites
- Linux Server
- Python3.6
## Getting Started
### 1. Install
pip install chatendpoint
### 2. Create Endpoints
```python
from chatendpoint.chatendpoint import ChatEndpoints
def create_user(dialog_variables):
# All dialog variables will be available in the dialog_variables dictionary
# dialog_variables example:
# {
# 'literal': 'F-150',
# 'value': 'F-150',
# }
# Using the dialog variables, access your data store, manipulate data, and
# return a dictionary which will add/update variables back to dialog.
return {'user_created': 'success'}
if __name__ == "__main__":
ce = ChatEndpoints()
# Create as many endpoints as you need.
ce.add_post_endpoint(path='/create_user', data_processor=create_user)
ce.start(port=8888)
```
- See demos/car_dealership_demo.py for a more in-depth example
- These endpoints will allow you to receive dialog variables, process the data as needed, then return any variables that should be be added or updated to the dialog.
- Default port is 8888
### 3. Dialog Setup
In the ChatrHub portal make sure you collect any variables via questionnaires before sending to your action endpoint. Setup a free account at https://chatrhub.com/signup/index.html
### 4. Open Firewall
Open port 8888 (Or whatever port you selected) to the ChatrHub IP address obtained by sending an email to admin@chatrhub.com.
### 5. Run server
Run the server in the background by running the script created in step 2.
## License
This project is licensed under the MIT License.
=======
History
=======
0.1.0 (2018-07-10)
------------------
* First release on PyPI.
Create custom actions for ChatrHub's automated chat agents https://chatrhub.com. (Create a free account if you dont have one already here: https://chatrhub.com/signup/index.html). Use this module when you want your chat dialog to interface with internal systems such as inventory or user management data stores.
You can pass variables collected in the dialog to the endpoint for processing and you can also pass variables back to the dialog to display to the user.
## Prerequisites
- Linux Server
- Python3.6
## Getting Started
### 1. Install
pip install chatendpoint
### 2. Create Endpoints
```python
from chatendpoint.chatendpoint import ChatEndpoints
def create_user(dialog_variables):
# All dialog variables will be available in the dialog_variables dictionary
# dialog_variables example:
# {
# 'literal': 'F-150',
# 'value': 'F-150',
# }
# Using the dialog variables, access your data store, manipulate data, and
# return a dictionary which will add/update variables back to dialog.
return {'user_created': 'success'}
if __name__ == "__main__":
ce = ChatEndpoints()
# Create as many endpoints as you need.
ce.add_post_endpoint(path='/create_user', data_processor=create_user)
ce.start(port=8888)
```
- See demos/car_dealership_demo.py for a more in-depth example
- These endpoints will allow you to receive dialog variables, process the data as needed, then return any variables that should be be added or updated to the dialog.
- Default port is 8888
### 3. Dialog Setup
In the ChatrHub portal make sure you collect any variables via questionnaires before sending to your action endpoint. Setup a free account at https://chatrhub.com/signup/index.html
### 4. Open Firewall
Open port 8888 (Or whatever port you selected) to the ChatrHub IP address obtained by sending an email to admin@chatrhub.com.
### 5. Run server
Run the server in the background by running the script created in step 2.
## License
This project is licensed under the MIT License.
=======
History
=======
0.1.0 (2018-07-10)
------------------
* First release on PyPI.
Metadata
Release files for chatendpoint 0.4.0
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 | |
|---|---|---|---|---|
| chatendpoint-0.4.0.tar.gz | 10.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chatendpoint-0.4.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 16.0 kB
Release files / chatendpoint-0.4.0.tar.gz
| Download URL | chatendpoint-0.4.0.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e1e4f7640489833f2f505a49f17a1caf64d7e0dbdc2d892e16f5c9f89b71549
|
|
BLAKE2b-256 checksum How to use checksums |
128e88cacc308566c9cc4f5dc75e0cc814e3413f0e34271bc0ac0cbdd1ab29cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / chatendpoint-0.4.0-py2.py3-none-any.whl
| Download URL | chatendpoint-0.4.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a846eb3dfcdfbead9cde6ecd59f364c0eefcb6c190560c5be7f5c18c04b8cc18
|
|
BLAKE2b-256 checksum How to use checksums |
d686429c57e37b2d379fb2dc59e16947f496492bb39155a00d1f0dc0505d8a44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for chatendpoint 0.4.0
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.