Save on Semble links from Streamplace chat
When I reply to a message with "+save", save the links it contains on Semble and add to my collection
place.stream.chat.message- Lexicon

place.stream.chat.message- Operations
- Record created
Steps (10)
CollectionURI- Value
- Hidden
- Note
- ATURI for the Semble Collection of destination
- If
event.didequals{{self}}- Triggered only by my message - and
event.commit.record.textequals+save- Triggered only by this text command
Then
parentMessage- Fetches the parent chat message data- Lookup
{{event.commit.record.reply.parent.uri}}
sembleCollection- Fetches data from Semble Collection- Lookup
{{CollectionURI}}
- If
parentMessage.foundequalstrue
Then
loop1For each item in
parentMessage.record.facets[].features[]- Continue only if
item.$typeequalsapp.bsky.richtext.facet#link
Save on SembleAction 1
- Page URL
{{item.uri}}
loop2For each item in
loop1.results[]Create a recordAction 2
- Target Collection
network.cosmik.collectionLink- Record Template
{ "card": { "cid": "{{item.cid}}", "uri": "{{item.uri}}" }, "addedAt": "{{now}}", "addedBy": "{{self}}", "createdAt": "{{now}}", "collection": { "cid": "{{sembleCollection.cid}}", "uri": "{{sembleCollection.uri}}" }, "provenance": { "via": { "cid": "{{item.cid}}", "uri": "{{item.uri}}" } } }