How can I integrate my Chatbot App with a theme file on Shopify?

bilalnasir
Shopify Partner
3 0 0

Hi! I have created a Chatbot Shopify App. The app is created through the latest @shopifycli using Node template which handles the preferences and history etc of the chats. 
I want to add the Chatbot html, js and css to the current theme when the user installs my app. And remove these files through an Uninstall button on my app. How can I do so.  

What is the API to access the user's current theme so I can add my chat bot (html,css,js) in their theme files. 

Reply 1 (1)

BrainStation23
Shopify Partner
334 54 51

hi @bilalnasir,

 

It seems like you need to inject some HTML into a theme. You can use the Shopify's official Remix app template for that. You can extend your app as a theme extension to inject HTML via the app block in a theme file. 
here is the official documentation for the theme app extension from Shopify
Theme app extension  

Brain Station 23 PLC
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Email: js.team@brainstation-23.com