RAGFlow icon

RAGFlow

Consume RAGFlow API

Upsert Text (Email)

AI-generated

Summary

Upserts text as a .txt document in a RAGFlow dataset, checking for an existing document with the same name first. Choose whether to skip a duplicate or delete it and upload the replacement; the node then attempts to start parsing the uploaded document.

Inputs

  • Dataset ID (required) — The RAGFlow dataset to target, selected from datasets loaded using the configured credentials.
  • Unique Document Name (required) — Document name used to find duplicates. The node appends .txt if the name does not already end with that extension.
  • Content (required) — Text content uploaded as a UTF-8 plain text file.
  • If Exists — For a matching document name, choose Skip (the default) to leave it unchanged, or Overwrite to delete it before uploading the new content.

Output shape

One output item per input item processed.

A skipped duplicate returns {status: "skipped", docName, id}. An upload returns {status: "success", action, data}, where action reports whether it was created or overwritten and whether parsing started or failed. data contains the RAGFlow upload response. If an error occurs, the node throws unless Continue On Fail is enabled, in which case it returns {error} for that item.

Links

Discussion