A chatbot which can push messages from a channel like Telegram to your dynalist inbox working with SAP Conversational AI platform.
Note: This project is currently in beta version and can be modified at any time.
Webchat script
<script src="https://cdn.cai.tools.sap/webchat/webchat.js"
channelId="a4b980bb-7d48-451a-8dff-f1c57849c676"
token="48374a061050040522cfa81d56a0002e"
id="cai-webchat"
></script>
Optional
// Put the meta tag below for mobile responsive
<meta name="viewport" content="width=device-width">
You can find it with the UserName @DynInboxBot
Create an account on the SAP Conversational AI platform.
You can find the logic of the bot here
First clone the project:
git clone [email protected]:PoJo93/dynalist-chatbot.git my-bot && cd my-bot
Then, install the dependencies:
Using pip
pip3 install -r requirements.txt
Using easy_install
easy_install `cat requirements.txt`
You should use your local Python3 or setup a virtual environment.
See the blog article which will soon come out. (The link will be posted here)
REQUEST_TOKEN=xxx LANGUAGE=xxx PORT=xxx python server.py
- Download ngrok
- Launch:
ngrok http 5000
- Copy the url ngrok outputs
- Paste it in the CAI interface: Go to your bot page, click on the RUN tab and edit your
current bot webhook
- Chat with your bot on the channels you've configured ;)
Currently it has all necessary files to be deployed under SAP Cloudfoundry. Follow this tutorial to set up the hosting on SAP Cloudfoundry
The chatbot should be self explenatory.
What it will do is saving the message/note you send it in your Dynalist Inbox in a comfortably formatted way.
Try it out yourself!
You can view the whole API reference at man.cai.tools.sap.