Incorpore comentários do Discourse em outro site usando Javascript

Understood, this is brutal for my case because there are tens of thousands of pages

Like this?

  1. API check to see if topic exists
  2. doesn’t exist, show button
  3. click button, API add topic
  4. successful, button container transforms into embed

…that has some issues too, like button clicks with no follow up engagement.

Is there any way to only create the topic when a user has actually commented, something like this?:

$discourse/new-topic?subject=$link.

or is the issue here that we can’t pass in topicID for deterministic coupling?