Integrating Tokopedia App with Google Assistant

Firmanda Nugroho
Jul 13 · 4 min read
Image for post
Image for post

Slice

Code 1.1 MainSliceProvider.kt
Code 1.2 AndroidManifest.xml

Actions

Table 2.1 Differences between Slice and Deeplink in Actions.
Code 2.1 actions.xml with Slice.
Image for post
Image for post
Video 2.1 Action with Slice
Code 2.2 actions.xml with deeplink.
Image for post
Image for post
Video 2.2 Actions with Deeplink
Code 2.3 actions.xml in AndroidManifest.xml
Code 2.4 actions.xml with parameter

Testing

Image for post
Image for post
Figure 3.1 App Action Test Tool

Future Development

Tips

Conclusion

Tokopedia Engineering

Story from people who build Tokopedia

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store