How to detect and process file attachments in Oracle Digital Assistant Custom Components?
Summary:
Hi everyone,
I'm trying to implement file upload functionality in Oracle Digital Assistant (ODA) using a Custom Component.
My requirement is simple:
- The user uploads a file (e.g.,
cc.txt) through the chatbot's attachment icon. - The chatbot should detect the uploaded attachment.
- The Custom Component should retrieve the attachment details, such as filename and attachment URL, and respond directly to the user.
My goal is to generate the following payload, including the file content, to pass to an Oracle REST API to store the file in Oracle Fusion through a POST request:
{
"Attachment": [
{
"DatatypeCode": "FILE",
"FileName": "test_file.txt",
"CategoryName": "MISC",
"ContentRepositoryFileShared": "false",
"Title": "test_file.txt",
"Description": "Welcome",
"FileContents": "V2VsY29tZQ=="
}
]
}
Tagged:
0