{
  "metadata": {
    "name": "Test Callouts"
  },
  "$targets": [
    {
      "namespace": "${REPL_ACCOUNT}/parser/twitter",
      "contextType": "post",
      "if": { "id": { "not": null, "index": true } },
      "injectTo": "afterText",
      "componentId": "${REPL_ACCOUNT}/widget/Onboarding.Callout"
    }
  ]
}

Explanation

  • $targets: Configured so that the callout component is added to a Twitter post if an id exists.

  • injectTo defines that the callout will appear immediately after the text.

  • componentId specifies the main component for displaying the callout.