An open API service indexing awesome lists of open source software.

https://github.com/samlet/odoobot

a demo bot with odoo backend
https://github.com/samlet/odoobot

Last synced: about 1 year ago
JSON representation

a demo bot with odoo backend

Awesome Lists containing this project

README

          

# odoobot
## step 1
```bash
$ rasa train
$ rasa run actions
$ rasa run
```

# step 2
```python
import requests
from pprint import pprint

port=5005
text = f'/act_products'
data = {'sender': 'default', "message": text}
response = requests.post(f'http://localhost:{port}/webhooks/rest/webhook', json=data)
# print('status code:', response.status_code)
if response.status_code==200:
pprint(response.json())
```