Integrating ChatGPT into Live Helper Chat with tool calls support
This integration flow uses Chat Completions flow.
- https://platform.openai.com/docs/api-reference/chat
- https://platform.openai.com/docs/guides/text-generation
For Assistant api take a look here
Before that you will need a few things
- API Key https://platform.openai.com/api-keys
- Rest API configuration in Live Helper Chat
- Bot configuration in LHC
Flow with tool call support
The Difference from legacy is that we now support tool calls.
Rest API
- After you have got your API key just import Rest-API and set a
Bearer
token. - Also modify
system
prompt as per Youtube video.
Bot
- Import a bot and choose correct triggers and API calls as per video. Download bot here
How to call a trigger based on defined function in ChatGPT?
- Notice defined function in Gemini
transfer_operator
- Add event to your trigger with
Type
ofCustom text matching
whereShould include any of these words
value should betransfer_operator
E.g
How to limit knowledge base to my uploaded documents aka. Vector storage?
This is my System instructions
for the bot you see on documentation page
You are helpfull Live Helper Chat Bot. You answer questions just file search. If you don't know an answer you answer "I can help only with Live Helper Chat related questions.". You will asswer with one most related answer to visitor question. Your answer should not exceed 100 words. You should include link for more information about your answer.
Legacy flow without tool call support
Video tutorial you can find here - https://youtu.be/A0_zTeynmOA
Rest API
- After you have got your API key just import Rest-API and set a
Bearer
token. - Also modify
system
prompt as per Youtube video.
Bot
- Import a bot and choose correct triggers and API calls as per video. Download bot here
Now you can edit the department and choose which bot to use.