← Back to Prototype Directory

Like Happy Replies

Like replies to my posts that have a positive sentiment

Author:
@ngerakines.me
Created:
2025-09-19
Updated:
2025-09-19

Placeholders

My DID

MY DID

Key:
MY_DID
Type:
did
Required:
Yes
Pattern:
^did:(plc|web):.*$
Example:
did:plc:cbkjy5n7bk3ax2wplmtjofq2

Node Configuration

[
  {
    "configuration": {
      "collection": "app.bsky.feed.post"
    },
    "node_type": "jetstream_entry",
    "payload": {
      "and": [
        {
          "==": [
            {
              "val": [
                "kind"
              ]
            },
            "commit"
          ]
        },
        {
          "or": [
            {
              "==": [
                {
                  "val": [
                    "commit",
                    "operation"
                  ]
                },
                "update"
              ]
            },
            {
              "==": [
                {
                  "val": [
                    "commit",
                    "operation"
                  ]
                },
                "create"
              ]
            }
          ]
        },
        {
          "starts_with": [
            {
              "var": [
                "commit",
                "record",
                "reply",
                "parent",
                "uri"
              ]
            },
            "at://$[MY_DID]/app.bsky.feed.post/"
          ]
        },
        {
          "==": [
            {
              "var": [
                "commit",
                "record",
                "reply",
                "parent",
                "uri"
              ]
            },
            {
              "var": [
                "commit",
                "record",
                "reply",
                "root",
                "uri"
              ]
            }
          ]
        }
      ]
    }
  },
  {
    "configuration": {},
    "node_type": "sentiment_analysis",
    "payload": {
      "val": [
        "commit",
        "record",
        "text"
      ]
    }
  },
  {
    "configuration": {},
    "node_type": "transform",
    "payload": {
      "$type": "app.bsky.feed.like",
      "createdAt": {
        "now": []
      },
      "subject": {
        "cid": {
          "val": [
            "commit",
            "cid"
          ]
        },
        "uri": {
          "cat": [
            "at://",
            {
              "val": [
                "did"
              ]
            },
            "/app.bsky.feed.post/",
            {
              "val": [
                "commit",
                "rkey"
              ]
            }
          ]
        }
      }
    }
  },
  {
    "configuration": {},
    "node_type": "publish_record",
    "payload": {
      "val": []
    }
  }
]