File size: 510 Bytes
faf25db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import requests

url = "https://api.vectorshift.ai/v1/chatbot/69533bd8a76af4b718068975/run"

payload = {
    "text": "Sample input message here",
    "conversation_id": "<string>", # optional, will start a new conversation if not provided
    "generate_follow_up_questions": false,
    "number_of_follow_up_questions": 3,
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.request("POST", url, json=payload, headers=headers)

print(response.text)