Uploads a knowledge base document via a POST request to VoiceFlow's API using a provided URL.
525
This Docker image can either upload a knowledge base document to VoiceFlow or list the knowledge base documents if no URL is provided. It requires an authorization code for the VoiceFlow API.
To build the Docker image:
docker build -t voice-flow-kb-upload .
To upload a knowledge base document, provide the URL and the authorization code:
docker run --rm -e AUTHORIZATION_CODE="your-auth-code" voice-flow-kb-upload <url>
Replace <url> with the URL of the knowledge base document, and "your-auth-code" with your actual authorization code.
If no URL is provided, the script will list the knowledge base documents:
docker run --rm -e AUTHORIZATION_CODE="your-auth-code" voice-flow-kb-upload
docker run --rm -e AUTHORIZATION_CODE="abcd" voice-flow-kb-upload https://example.com/document.txt
docker run --rm -e AUTHORIZATION_CODE="abcd" voice-flow-kb-upload
AUTHORIZATION_CODE: The authorization code required to authenticate with the VoiceFlow API.If the request is successful, the script will extract the documentID from the JSON response and display it as part of the success message:
Success! DocumentID: <documentID>
If no URL is provided, the script will list the knowledge base documents with details like documentID, name, status, and updatedAt.
Total Knowledge Base Documents: 2
DocumentID: qqqq, Name: qqqq, Status: SUCCESS, Updated At: 2024-09-26T11:17:44.809Z
This project is licensed under the MIT License.
This Docker image was created by Schogini Systems Private Limited. We specialize in AI Chatbot and Automation solutions for small businesses.
For more information about our services, visit: https://www.schogini.com.
Content type
Image
Digest
sha256:504486ee3…
Size
49 MB
Last updated
almost 2 years ago
docker pull schogini/voice-flow-kb-upload