import api from 'src/api';

export const sendChatMessage = async ({ message, history = [] }) => {
  const { data } = await api.post('/chatbot/message', { message, history });
  return data.payload.reply;
};
