https://github.com/twyla-ai/widget-sample-android
Sample for embedding Twyla Widget in an Android app
https://github.com/twyla-ai/widget-sample-android
android chatbot widget
Last synced: about 2 months ago
JSON representation
Sample for embedding Twyla Widget in an Android app
- Host: GitHub
- URL: https://github.com/twyla-ai/widget-sample-android
- Owner: twyla-ai
- License: mit
- Created: 2019-09-14T10:23:02.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-16T11:43:43.000Z (almost 7 years ago)
- Last Synced: 2025-02-21T12:23:56.756Z (over 1 year ago)
- Topics: android, chatbot, widget
- Language: Kotlin
- Homepage:
- Size: 125 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Widget Android Embed Sample
A sample Android project showcasing how to embed Twyla Widget in an activity:
## Getting Started
1. Grab the widget configuration from Twyla Canvas Widget configurator (Project settings -> Twyla Web Widget -> Generate Snippet).
2. Add the embed attribute `data-embed-mode="true"` to the script. It should look something like:
```html
```
3. Import the Project in Android Studio.
4. In `assets/index.html`, replace the script with the one from step #2.
5. Run the project