Hello Genesys Community,
I'm experiencing an issue with rendering attachments in inbound messages using the Genesys OM platform. Despite receiving a successful response from the API, the attachments do not appear in the conversation view.
Implementation Details:
- SDK Used: Genesys JavaScript SDK
- Function:
postConversationsMessageInboundOpenEvent
- API Documentation: Genesys Inbound Text Messages
Payload Structure:
const body = {
channel: {
messageId: uuid.v4(),
from: {
nickname,
id: userId,
idType: "Opaque",
firstName,
lastName,
},
time: String(timestamp || new Date().toISOString()),
metadata: { customAttributes },
},
text: message || "",
content: [
{
attachment: {
mediaType: "Image",
url: "https://www.genesys.com/media/4a30f651-ba-genesys-logo-color.png",
mime: "image/png",
filename: "4a30f651-ba-genesys-logo-color.png",
text: "Genesys Logo",
},
},
],
};
Request and Logging:
const conversationAPI = new platformClient.ConversationsApi();
const messageResult = await conversationAPI.postConversationsMessageInboundOpenMessage(
integrationId,
body,
);
console.log("messageResult", messageResult);
console.log("messageResult.content", messageResult.content);
Success Response Received:
{
"id": "6558e4292080fda6a90026a6f3ddb02a",
"channel": {
"id": "05a05554-c8c5-40e7-86d7-4693591f845a",
"platform": "Open",
"type": "Private",
"messageId": "c979dd99-b35a-4214-8dee-9c11106fa6d0",
"to": { "id": "05a05554-c8c5-40e7-86d7-4693591f845a" },
"from": {
"nickname": "f83c16dd-c736-4cb5-aa55-53a2ceaf1427 ",
"id": "f83c16dd-c736-4cb5-aa55-53a2ceaf1427",
"idType": "Opaque",
"firstName": "f83c16dd-c736-4cb5-aa55-53a2ceaf1427",
"lastName": ""
},
"time": "2024-10-01T08:43:43.080Z",
"metadata": { "customAttributes": [Object] }
},
"type": "Text",
"text": "hello",
"content": [
{
"contentType": "Attachment",
"attachment": {
"mediaType": "Image",
"url": "https://www.genesys.com/media/4a30f651-ba-genesys-logo-color.png",
"mime": "image/png",
"text": "Genesys Logo",
"filename": "4a30f651-ba-genesys-logo-color.png"
}
}
]
}
Issue:
- After sending the message, the console logs confirm a successful response with the attachment details.
- However, the attachment does not render in the Genesys OM conversation interface.
What I've Tried:
- Verified that the attachment URL (
https://www.genesys.com/media/4a30f651-ba-genesys-logo-color.png
) is accessible and points to a valid image. - Ensured all required fields in the payload are correctly populated.
- Checked for any discrepancies in the
mediaType
andmime
fields. - Confirmed that the API response indicates successful message processing.
Questions:
- Additional Configuration: Is there an additional configuration required to render attachments in inbound messages on the Genesys OM platform?
- Attachment Limitations: Are there any known limitations or specific formats for attachments that I should be aware of?
- Troubleshooting Steps: Can anyone provide insights or suggest troubleshooting steps to resolve this rendering issue?
Additional Information:
- Request Method: POST
- Endpoint Used: As described in the Genesys Inbound Text Messages documentation.
- Logging: Implemented console logs to capture both the entire response and the
content
array specifically.
Any assistance or guidance would be greatly appreciated. Thank you!