Metadata-Version: 2.4
Name: tutor-contrib-asyntai
Version: 1.0.0
Summary: Add the Asyntai AI chat assistant to your Open edX platform. It answers learner questions from your own content.
Author-email: Asyntai <hello@asyntai.com>
License-Expression: MIT
Project-URL: Homepage, https://asyntai.com/documentation/integrations/tutor/
Project-URL: Documentation, https://asyntai.com/documentation/integrations/tutor/
Project-URL: Source, https://github.com/asyntai/tutor-contrib-asyntai
Project-URL: Issues, https://github.com/asyntai/tutor-contrib-asyntai/issues
Keywords: tutor,tutor-plugin,openedx,open-edx,chatbot,ai,chat,lms,elearning,asyntai
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Education
Classifier: Topic :: Communications :: Chat
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: tutor<23.0.0,>=22.0.0
Dynamic: license-file

# tutor-contrib-asyntai

Add the [Asyntai](https://asyntai.com) AI chat assistant to your Open edX
platform with [Tutor](https://docs.tutor.edly.io/). It answers learner questions
from your own content, day and night.

## Requirements

- Tutor 22 (Verawood)
- The `mfe` plugin, which `tutor[full]` installs
- An [Asyntai](https://asyntai.com) account. The Free plan is enough to try the widget

## Install

```bash
pip install tutor-contrib-asyntai
tutor plugins enable asyntai
tutor config save --set ASYNTAI_WIDGET_ID=asyntai_1a2b3c4d5e6f
tutor images build mfe
tutor local launch
```

Use your own widget ID.

## Where the widget ID comes from

Open the Install page in your [Asyntai dashboard](https://asyntai.com/dashboard).
The widget ID is the value of `data-asyntai-id` in the snippet shown there. It
starts with `asyntai_`.

## Settings

| Setting | Default | What it does |
| --- | --- | --- |
| `ASYNTAI_WIDGET_ID` | empty | Your Asyntai widget ID |
| `ASYNTAI_SCRIPT_URL` | `https://widget.asyntai.com/static/js/chat-widget.js` | Advanced. Load the widget from another URL |

To change the widget ID later, run `tutor config save` with the new ID, then
`tutor local restart`. You do not need a new MFE image.

## Remove

```bash
tutor plugins disable asyntai
tutor images build mfe
tutor local launch
```

## Tests

```bash
pip install -e . tutor-mfe django
python tests/test_plugin.py
```

## Links

- Documentation: https://asyntai.com/documentation/integrations/tutor/
- Asyntai: https://asyntai.com

## License

MIT
