feat: integrate WhatsApp send into customer detail with AI reply generation
This commit is contained in:
@@ -242,6 +242,11 @@ export const healthApi = {
|
||||
customerHealth: (id) => request(`/customers/${id}/health`),
|
||||
}
|
||||
|
||||
export const whatsappApi = {
|
||||
send: (to, text, templateName = null, templateParams = null, mediaUrl = null, mediaType = null) =>
|
||||
request('/whatsapp/send', 'POST', { to, text, template_name: templateName, template_params: templateParams, media_url: mediaUrl, media_type: mediaType }),
|
||||
}
|
||||
|
||||
export const customerApi = {
|
||||
list: (page = 1, size = 20, status) => {
|
||||
let params = `page=${page}&size=${size}`
|
||||
|
||||
Reference in New Issue
Block a user