Integrations/Langflow
AI Agent

Create spreadsheets & documents with Langflow

In Langflow, use an API Request component (or a custom Python component) to call OpenOfficeAI, then wire it into an Agent so your visual flow can produce shareable spreadsheets. Map your data into the request body and pass the returned URL downstream.

Langflow — API Request / custom component
# Option A: API Request component
#   Method: POST
#   URL:    https://openofficeai.com/api/v1/sheets
#   Headers: { "Authorization": "Bearer YOUR_API_KEY" }
#   Body:   { "title": "...", "sheets": [{ "rows": [...] }] }

# Option B: custom Python component
import requests
def build(title: str, rows: list) -> str:
    r = requests.post("https://openofficeai.com/api/v1/sheets",
        headers={"Authorization": "Bearer YOUR_API_KEY"},
        json={"title": title, "sheets": [{"rows": rows}]})
    return r.json()["url"]

How to create a spreadsheet with Langflow

  1. 1Add an API Request component (or a custom Python component).
  2. 2Configure POST to /api/v1/sheets with the Authorization header.
  3. 3Map the flow's data into the JSON body rows.
  4. 4Wire the URL output into an Agent or a Chat Output.

Why use OpenOfficeAI with Langflow

Frequently asked questions

API Request component or custom component?

Use the API Request component for a quick no-code call; use a custom Python component when you need to transform data into the rows shape before sending.

How do I give the URL to an agent?

Expose the tool to a Tool-calling Agent component, or feed the API response into the agent's context so it can reference the link in its answer.

Can I keep the key out of the flow?

Yes. Use Langflow's global variables / environment settings for the API key and reference it in the header instead of pasting it inline.

Start creating documents with Langflow

Free tier includes 500 API calls per month — no card required.

Related integrations