Usage
Guide on using Vectorshift APIs.
Last updated
Guide on using Vectorshift APIs.
Last updated
Currently, we have two types of APIs you can use to integrate with your app: Chatbot and Pipelines. Before using the API, you need to create your API Key. Visit Access for more details.
API calls are rate-limited to 250/minute for non-Enterprise subscriptions.
To generate a chatbot API call, you can go to Chatbot
-> Export
-> API
. Here's an example of a generated API call for a Basic Chatbot.
input
The messsage you want to pass to the chatbot
chatbot_name
Name of your chatbot
username
Your username
conversation_id
The identifier of the conversation.
To initialize a new conversation, you can keep it empty and you will receive a new ID in the response.
To retain the existing conversation history, you can put the id.
To generate a pipeline API call, you can go to Pipeline
-> Click on the 3 vertical dots -> Generate API Calls
. Here's an example of a generated API call for the pipeline "Titan-Express AWS"
.
The generated API calls might differ for each pipeline depending on which pipeline you choose.
inputs
Input object based on your pipeline input name and format. The number of inputs and the key name depend on how the pipeline is designed.
In this example, the pipeline only has one key "User_Question"
and requires one input "value"
.
pipeline_name
The name of your pipeline.
username
The username of pipeline creator.