Eleven Labs Conversational icon

Eleven Labs Conversational

Interact with ElevenLabs Conversational AI API

Knowledge Base → Create Document

AI-generated

Overview

The "Create Document" operation in the Knowledge Base resource allows users to add new documents to a knowledge base that an AI agent can access. This operation supports two types of document creation:

  • Uploading a file directly (binary data).
  • Specifying a URL pointing to a documentation page.

This node is useful for scenarios where you want to enrich an AI conversational agent's knowledge by providing it with additional reference materials. For example, you might upload product manuals or link to online help pages so the agent can answer user questions more accurately.

Practical examples:

  • Uploading a PDF manual of a product to the knowledge base.
  • Adding a URL to a frequently updated online FAQ page for the agent to consult.

Properties

Name Meaning
Document Type Choose between "Upload File" (upload binary data) or "Specify URL" (provide a documentation URL).
File Boolean indicating if the file upload requires binary data from a previous node (true/false).
Binary Property The name of the property holding the binary data object when uploading a file (e.g., "data").
URL The URL string pointing to a documentation page accessible to the agent.
Additional Fields Collection of optional fields; currently supports:
- Name A custom, human-readable name for the document being created.

Output

The output JSON contains the result of the document creation operation. It typically includes metadata about the newly created document such as its ID, name, and possibly status or confirmation details.

If the document was uploaded as a file, the node expects binary data input but does not output binary data itself.

Dependencies

  • Requires an API key credential for authenticating with the ElevenLabs Conversational AI API.
  • The node depends on the external ElevenLabs Conversational AI service to manage knowledge base documents.
  • Proper configuration of the API key credential in n8n is necessary.

Troubleshooting

  • Missing binary data: If "Upload File" is selected but no binary data is provided from a previous node, the operation will fail. Ensure the binary property name matches the actual binary data property.
  • Invalid URL: When specifying a URL, ensure it is accessible and correctly formatted; otherwise, the document creation may fail.
  • API authentication errors: Verify that the API key credential is correctly set up and has sufficient permissions.
  • Network issues: Connectivity problems with the ElevenLabs API endpoint can cause failures; check network settings and retry.
  • Error messages: Errors returned from the API are passed through; reading the error message will usually indicate the problem (e.g., invalid input, unauthorized).

Links and References

Discussion