Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Modify Theme file with Shopify App

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
413 62 60

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 (Mail: js.sbu@brainstation-23.com)
- Was your question answered? Mark it as an Accepted Solution
- Did the solution not address your concern? We kindly request that share or mail your store URL with us this will enable us to collaborate more closely.
- Explore our Shopify public apps