Broid Alexa Integration
Broid Integrations is an open source project providing a suite of Activity Streams 2 libraries for unified communications among a vast number of communication platforms.
Connect your App to Multiple Messaging Channels with One OpenSource Language.
Message types supported
Simple | Image | Video | Buttons | Location | Phone number |
---|---|---|---|---|---|
✅ | ✅ | ✅ |
Buttons, Location, Phone number are platform limitations.
Image, Video are supported as a simple message
Getting started
Install
npm install --save broid-alexa
Connect to Alexa
const BroidAlexa = ; const alexa = http: port: 8080 host: "0.0.0.0" ; alexa ;
Options available
name | Type | default | Description |
---|---|---|---|
serviceID | string | random | Arbitrary identifier of the running instance |
logLevel | string | info |
Can be : fatal , error , warn , info , debug , trace |
http | object | { "port": 8080, "http": "0.0.0.0" } |
WebServer options (host , port ) |
Receive a message
alexa
Post a message
To send a message, the format should use broid-schemas.
const formatted_message = "@context": "https://www.w3.org/ns/activitystreams" "type": "Create" "generator": "id": "f6e92eb6-f69e-4eae-8158-06613461cf3a" "type": "Service" "name": "alexa" "object": "type": "Note" "content": "What's the weather like today?" "to": "id": "15146345659" "type": "Person" alexa ;
Examples of messages
Message received
- A message received from Sally
Send a message
- Send a simple message
Contributing to Broid
Broid is an open source project. Broid wouldn't be where it is now without contributions by the community. Please consider forking Broid to improve, enhance or fix issues. If you feel like the community will benefit from your fork, please open a pull request.
And because we want to do the better for you. Help us improving Broid by sharing your feedback on our Integrations GitHub Repo and let's build Broid together!
Code of Conduct
Make sure that you're read and understand the Code of Conduct.
Copyright & License
Copyright (c) 2016-2017 Broid.ai
This project is licensed under the AGPL 3, which can be found here.