{DEV} Issues with Deep Linking and Passing Unique Parameters in Shopify App Embed Extension

Topic summary

A developer is building a Shopify chatbot app using app embed extensions and encountering two technical challenges:

Deep Linking Problem:

  • Attempting to create a deep link that directs users to the theme editor with the app embed pre-activated
  • Current URL format triggers a red error: “‘chat’ not added. There is a problem with the app block. Contact the app developer.”
  • Using URL structure: admin/themes/[theme-id]/editor?context=apps&addAppBlockId=[extension-id]/chat
  • Uncertain what should follow the extension ID or if the approach is fundamentally incorrect

Passing Unique Parameters:

  • Needs to insert JavaScript code into the theme that contains unique URL parameters (e.g., id=111&cid=222)
  • Wants to pass these parameters after theme installation and update metadata when users click the deep link
  • Considering Shopify App Metafields as a solution
  • Questions whether metafields can be updated from the app dashboard (not Shopify admin) and accessed from Liquid code in blocks/chat.liquid

The discussion remains open with no responses or solutions provided yet.

Summarized with AI on November 8. AI used: claude-sonnet-4-5-20250929.

Hi everyone,

I’m developing a Shopify chatbot app using the Shopify app embed extension and facing two issues:

  1. Deep Linking Issue: My app is visible in the app embeds list. I want to create a deep link that opens the corresponding page where the user already has my app embed activated and only needs to click on publish. However, when I open my link, Shopify shows a red error message saying, “chat” not added. There is a problem with the app block. Contact the app developer.

    Here is the URL I am using:

    https:// my-shop-url.myshopify.com/admin/themes/131438837848/editor?context=apps&addAppBlockId=0668dc6c-AAAA-4a5c-9d57-75ba0a1b1089/chat

    where 0668dc6c-AAAA-4a5c-9d57-75ba0a1b1089 is my extension ID (double-checked) and chat refers to my blocks/chat.liquid file. What am I doing wrong? What should be after the Shopify extension ID?

  2. Passing Unique Parameters: I need to insert a JavaScript code into the theme that contains a unique URL like:

    https:// myserver.com/chatwidget.js?id=111&cid=222

    I want to pass this string (id=111&cid=222) after the theme is installed. For example, when the user clicks on the deep link, I want to update some metadata. It seems Shopify provides this possibility via App Metafields. Can I update these metafields from my app’s dashboard (not in Shopify admin)? Also, can I access metafields from my Liquid code located in ./blocks/chat.liquid?

Thanks for your help!

Best regards,
Pilsen