AI Agent

Create spreadsheets & documents with Dify

In Dify, add OpenOfficeAI as a Custom Tool (via its OpenAPI/HTTP definition) so your agent or workflow can create shareable spreadsheets. Once imported, the LLM can call it to turn data into a link, or you can use it as an HTTP node in a Dify workflow.

Dify — Custom Tool (HTTP)
# Tools > Create Custom Tool > import an OpenAPI schema like:
paths:
  /api/v1/sheets:
    post:
      operationId: create_spreadsheet
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                title: { type: string }
                sheets: { type: array }

# Authorization: API Key in Header
#   Header: Authorization   Value: Bearer YOUR_API_KEY
# Base URL: https://openofficeai.com

How to create a spreadsheet with Dify

  1. 1Go to Tools and create a Custom Tool.
  2. 2Import an OpenAPI schema for POST /api/v1/sheets (or add it as an HTTP node).
  3. 3Set authentication to API Key in header: Authorization = Bearer YOUR_API_KEY.
  4. 4Add the tool to your agent or workflow and use the returned url.

Why use OpenOfficeAI with Dify

Frequently asked questions

How do I authenticate the custom tool?

In the tool's authorization settings, choose API Key, location Header, name Authorization, and value "Bearer YOUR_API_KEY". Dify sends it with every call.

Can I use it in a workflow instead of an agent?

Yes. Add an HTTP Request node in a Dify workflow pointing at /api/v1/sheets with the header and JSON body, then reference the response url in downstream nodes.

How does the agent decide to call it?

The operationId and descriptions in your schema become the tool spec the LLM sees, so write clear names and descriptions to guide invocation.

Start creating documents with Dify

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

Related integrations