Skip to content

An Amazon Echo integration (Alexa) with SAP Business by Design.

License

Notifications You must be signed in to change notification settings

SAP-samples/byd-assistant

REUSE status License: Apache2 CI Open Source Love

Originally forked from B1 Assistant

A sample Alexa Skill to demonstrate the integration between Amazon Echo x SAP Business ByDesign

Requirements

Deployment

STEP 1: ByD OData API

STEP 2: Deployment of the ByD Assistant Backend in the SAP Cloud Platform

  • 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)

STEP 3: Configure the Alexa Skill

  • Follow the steps int he skill folder to create your Alexa Skill and have it connected to the SAP Cloud Platform

Test it

Now you can talk to your SAP Business By Design! Demos: 🇬🇧🇫🇷 🇮🇹🇲🇽

Support and Contributions

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.

License

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.