rasa-alice
Rasa Connector for Yandex Dialogs.
Installing
$ pip install rasa-alice
Usage
URL: /webhooks/alice/webhook
credentials.yml
rasa_alice.AliceInput:
domain.yml
templates:
utter_text:
- text: "Здравствуйте! Это мы, хороводоведы."
utter_text_custom:
- custom:
text: "Здравствуйте! Это мы, хороводоведы."
tts: "Здравствуйте! Это мы, хоров+одо в+еды."
end_session: true # false by default
utter_text_with_buttons:
- text: 'Hello'
buttons:
- title: 'Надпись на кнопке'
url: 'https://example.com/'
hide: true
utter_big_image:
- custom:
text: "Здравствуйте! Это мы, хороводоведы."
card:
type: "BigImage"
image_id: "1027858/46r960da47f60207e924"
title: "Заголовок для изображения"
description: "Описание изображения."
button:
text: "Надпись на кнопке"
url: "http://example.com/"
utter_items_list:
- custom:
text: "Здравствуйте! Это мы, хороводоведы."
card:
type: "ItemsList"
header:
text: "Заголовок галереи изображений"
items:
- image_id: "<image_id>"
title: "Заголовок для изображения."
description: "Описание изображения."
button:
text: "Надпись на кнопке"
url: "http://example.com/"
The original request is stored in metadata, you can use it in custom actions:
class ActionHelloWorld(Action):
def name(self) -> Text:
return "action_hello_world"
def run(self, dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
events = tracker.current_state()['events']
user_events = []
for e in events:
if e['event'] == 'user':
user_events.append(e)
original_request = user_events[-1]['metadata']
payload = original_request['request']['payload']
Metadata
Release files for rasa-alice 0.1.1
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 | Actions |
|---|---|---|---|---|
| rasa-alice-0.1.1.tar.gz | 4.9 kB | Without provenance | Details for rasa-alice-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rasa_alice-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for rasa_alice-0.1.1-py3-none-any.whl |
Total release size: 9.6 kB
Release files / rasa-alice-0.1.1.tar.gz
| Download URL | rasa-alice-0.1.1.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9becc411090f6c172b621fa8de42ae0aa31248abf076fa36d50ff4246d632f37
|
|
BLAKE2b-256 checksum How to use checksums |
a17898eac2d80777444c1865a4c9afcbf6f3aa89d29b91b8e1f3f3875af1c618
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
|
Release files / rasa_alice-0.1.1-py3-none-any.whl
| Download URL | rasa_alice-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
01615fc7cc10dc6cac3e2fa009480285d120cc042f0620b12c5ce04e1405bd79
|
|
BLAKE2b-256 checksum How to use checksums |
96bc0256c559c3db60119eaabda46d5aca5038295e387d96a0b12dae6c671aa4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
|
Security for rasa-alice 0.1.1
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.