---
title: mapDataToMessage
description: "Learn how to build custom functionality when working with the React Conversational UI by Kendo UI with the help of the mapDataToMessage."
api_reference: true
type: inner_api
slug: api_conversational-ui_mapdatatomessage
---
# mapDataToMessage
Maps raw data object to standardized Message interface using field mapping configuration
#### Parameters
##### data
any
Raw data object from external source
##### fieldMapping
[FieldMappingConfig]({% slug api_conversational-ui_fieldmappingconfig %})
Field mapping configuration (optional)
#### Returns
[Message]({% slug api_conversational-ui_message %})
Mapped Message object