Save on Semble messages from Streamplace chat

When I reply to a message with "+msave", save a PDSls url for the message record on Semble and add to my collection

place.stream.chat.message
Lexicon
place.stream.chat.message
Operations
Record created

Steps (6)

VariableCollectionURI
Value
Hidden
Note
ATURI for the Semble Collection of destination
Conditionbranch
  • If event.did equals {{self}} - Triggered only by my message
  • and event.commit.record.text equals +msave - Triggered only by this text command
  • and event.commit.record.reply.parent.uri exists - Triggered only if it's a reply
Then
Fetch recordparentMessage- Fetches the parent chat message data
Lookup
{{event.commit.record.reply.parent.uri}}
Fetch recordsembleCollection- Fetches data from Semble Collection
Lookup
{{CollectionURI}}

Save on SembleAction 1card

Page URL
https://pdsls.dev/{{parentMessage.uri}}

Create a recordAction 2

Target Collection
network.cosmik.collectionLink
Record Template
{
  "card": {
    "$type": "com.atproto.repo.strongRef",
    "cid": "{{card.cid}}",
    "uri": "{{card.uri}}"
  },
  "addedAt": "{{now}}",
  "addedBy": "{{self}}",
  "createdAt": "{{now}}",
  "collection": {
    "$type": "com.atproto.repo.strongRef",
    "cid": "{{sembleCollection.cid}}",
    "uri": "{{sembleCollection.uri}}"
  },
  "provenance": {
    "$type": "network.cosmik.defs#provenance",
    "via": {
      "$type": "com.atproto.repo.strongRef",
      "cid": "{{card.cid}}",
      "uri": "{{card.uri}}"
    }
  }
}