Store multmidia files link on the chatbot buider´s question block variable
planned
C
Clayton Aires
A workaround would be use two connections from smschat.
One for the chatbot integration another for the endpoint.
This way we would get the media file from smschat and proccess it on the endpoint, and send the message using the external token api call.
The problems are.
- Cost associated with another smschat connection
- Even in a livechat the message will be sent from external token API call, so we need to find a way to block api call from external token for conversations/contacts on live chat.
Thanks!
Алла Мардар
Clayton Aires: If no block is placed after the API block that will send a request with a picture or file, the chatbot will stop. If you send a request with a trigger from an external service, the chatbot will start again. Then the user will not be able to use the chatbot during the processing on external service and the situation will not arise that the user will end up in life chat. This approach should solve this issue.
C
Clayton Aires
API method:
Supposing that the customer sends an voice message: "How are you?"
body:
{
"client_id": "0",
"client_name": "John",
"query": "https://promptchat.com/ckjfklashdfkhsjdkfhkj.ogg",
"agent_id": "1",
"agent_role": null,
"context": "",
"instructions": null,
"add_info": null
}
IA Response:
{
"response": "I´m good and you?",
}
Usage examples:
1- A customer sends a voice message, I send the link via API, download the auido file on the external server, proccess it on the endpoint with AI, and give a text response.
2- A customer sends a image, I send it via API, download the auido file on the external server, proccess it on the endpoint with AI, and give an image description as response.
3 - A customer sends a document (pdf, txt, video), I send it via API, download the auido document on the external server, proccess it on the endpoint with AI, and give an response based on the document.
C
Clayton Aires
In this case we need the link of the media file stored on a variable, that we can send via API. Currently we can access just the link of attached files by usen the sufix _files. But it´s important to acces media files send on whatsapp or other chat system.
Алла Мардар
Clayton Aires: We are unable to provide access to the file, we only provide access to the file link. Then you can download this file and do whatever you want with it. The only thing that doesn't work is recording audio into a variable. We can consider this issue. If this solution does not suit you, please describe why.
Kornel Kathi
planned