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
- Host: GitHub
- URL: https://github.com/samlet/odoobot
- Owner: samlet
- Created: 2020-02-05T04:43:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-05T04:45:14.000Z (over 6 years ago)
- Last Synced: 2025-04-09T06:15:49.432Z (about 1 year ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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())
```