pub fn send_msg_to_callback_url(
    data: &mut ConversationInfo,
    msg: Vec<Message>,
    interaction_order: i32,
    end: bool,
) {
    let messages = messages_formatter(data, msg, interaction_order, end);

    csml_logger(
        CsmlLog::new(
            Some(&data.client),
            Some(data.context.flow.to_string()),
            None,
            format!("conversation_end: {:?}", messages["conversation_end"]),
        ),
        LogLvl::Debug,
    );

    send_to_callback_url(data, serde_json::json!(messages))
}
/**
 * Send a message to the configured callback_url.
 * If not callback_url is configured, skip this action.
 */
Send a message to the configured callback_url.
If not callback_url is configured, skip this action.
Send a message to the configured callback_url . If not callback_url is configured skip this action .
pub fn send_msg_to_callback_url(
    data: &mut ConversationInfo,
    msg: Vec<Message>,
    interaction_order: i32,
    end: bool,
) {
    let messages = messages_formatter(data, msg, interaction_order, end);
    csml_logger(
        CsmlLog::new(
            Some(&data.client),
            Some(data.context.flow.to_string()),
            None,
            format!("conversation_end: {:?}", messages["conversation_end"]),
        ),
        LogLvl::Debug,
    );
    send_to_callback_url(data, serde_json::json!(messages))
}
pub fn send_msg_to_callback_url ( data : & mut ConversationInfo , msg : Vec < Message > , interaction_order : i32 , end : bool , ) { let messages = messages_formatter ( data , msg , interaction_order , end ) ; csml_logger ( CsmlLog :: new ( Some ( & data . client ) , Some ( data . context . flow . to_string ( ) ) , None , format ! ( " " messages [ " " ] ) , ) , LogLvl :: Debug , ) ; send_to_callback_url ( data , serde_json :: json ! ( messages ) ) }
Send a message to the configured callback_url.
Send a message to the configured callback_url .
data
&mut ConversationInfo
msg
Vec<Message>
interaction_order
i32
end
bool
data
&mut ConversationInfo
msg
Vec<Message>
interaction_order
i32
end
bool