Originally forked from B1 Assistant
A sample Alexa Skill to demonstrate the integration between Amazon Echo x SAP Business ByDesign
- Import this sales orders model in the SAP Businesss ByDesign Odata Services
- Activate the models and take note of the service URL
- Clone/Download this repository
- From the root directory, using the Cloud Foundry CLI, push your app to the SAP CP Cloud Foundry
$ cf push --random-route
Then set the Environment Variables according to the example:
$ cf set-env bydassistant SMB_SERVER https://my023666.sapbydesign.com
$ cf set-env bydassistant SMB_PORT ""
$ cf set-env bydassistant SMB_PATH /sap/byd/odata/cust/v1/khsalesorderdemo
$ cf set-env bydassistant SMB_AUTH bWFuYWdlcjptYW5hZ2VyMTIz
$ cf set-env bydassistant SMB_DEFAULT_BP CP100110
AUTH is Base64 Encoded user:password*
Restart your application (so it can read the new environment variables)
$ cf restart bydassistant
You will see your backend URL (to be used in the next step)
- For details about app deployment check Deploying a NodeJS app to SAP Cloud PLatform in this guide
- Follow the steps int he skill folder to create your Alexa Skill and have it connected to the SAP Cloud Platform
Now you can talk to your SAP Business By Design! Demos: 🇬🇧🇫🇷 🇮🇹🇲🇽
This repository is provided "as-is". With no Warranty or support
We are open to contributions specially to adapt the ByD Assistatnt to other languanges. We can support all the available Alexa Locales. If you want to help, submit a Pull Request with a lang file and a IntentSchema of your language of choice. Please use the Lang Template and the Intent Schema Template as a starting point. Name then accordingly to the to the respective Local Code Please don't change any of the %PLACEHOLDERS%.
If you have questions, please ask.
Copyright (c) 2021 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.