N8N and Fibery Integration Error (RichText)

We did it. And it works.
Here are a few key changes to the workflow and content.

Edit Fields

{{(() => {
  const text = $json.message.text.split('\n').slice(1).join('\n').trim();
  return {
    "fibery/rich-text": [
      {
        text,
        type: "paragraph"
      }
    ]
  };
})()}}

HTTP Request Query

JSON

[
  {
    "command": "fibery.entity/query",
    "args": {
      "query": {
        "q/from": "My Space/Content Ideas",
        "q/select": [
          "fibery/id",
          {
            "My Space/Description": [
              "Collaboration~Documents/secret"
            ]
          }
        ],
        "q/where": ["=", ["fibery/id"], "$id"],
        "q/limit": 1
      },
      "params": {
        "$id": "{{ $json.entityId }}"
      }
    }
  }
]

Set Entity Description
Manual Mapping

descriptionText
String
{{ $('Edit Fields').item.json.description['fibery/rich-text'].map(p => p.text).join('\n\n') }}

HTTP Request2

URL: https://myworkspace.fibery.io/api/documents/{{ $('HTTP Request Query').item.json.result[0]['My Space/Description']['Collaboration~Documents/secret'] }}?format=md

JSON
{{ { content: $json.descriptionText } }}

DONE :joy: :sweat_smile: :ok_hand:t2:

1 Like

Here are the neural networks I tried to connect to solve the issue and who actually succeeded and helped.

Fibery AI Agent (Claude): :white_check_mark:
Fibery AI Support bot: :white_check_mark:
ChatGPT (special GPTs): :cross_mark:
Grok: :cross_mark:
Gemini: :cross_mark:
Perplexity: :cross_mark:
Manus: :cross_mark:
Genspark: :cross_mark:

And human neural network :grinning_face: :ok_hand:t2: :clap:t2:Chr1sG

1 Like