Actions60
- Agent Actions
- Org Actions
- Call Actions
- Usage Actions
- Voice Actions
- Phone Number Actions
- Knowledge Base: Document Actions
- Knowledge Base: Website Actions
- Billing Actions
- Chat (Build) Actions
Knowledge Base: Document → Create
AI-generatedSummary
Create documents in a Phonely agent's knowledge base.
Inputs
- Agent ID (required) — ID of the Phonely agent whose knowledge base will receive the documents.
- Documents (JSON) — Array of document objects to add (matches the API's expected format).
Output shape
json
API response from the agent-documents endpoint, typically containing details of the created documents.
Examples
Example 1: Add a text document to an agent's knowledge base.
Set Agent ID to the target agent and Documents (JSON) to an array with a single object { type: 'text', content: 'Hello world', title: 'Greeting' }.