From 6f9edcdc34d88166cdf5029950cbd56d1b6a5ccf Mon Sep 17 00:00:00 2001 From: Gabriel Grinberg Date: Thu, 18 Sep 2025 15:42:25 +0300 Subject: [PATCH] whatsapp link --- src/modules/agents.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/agents.ts b/src/modules/agents.ts index dedcc6c..eef9ef0 100644 --- a/src/modules/agents.ts +++ b/src/modules/agents.ts @@ -74,6 +74,10 @@ export function createAgentsModule({ }); }; + const generateUserWhatsAppLink = (agentName: string) => { + return axios.post(`/whatsapp/generate-user-link`, { agent_name: agentName }); + }; + return { getConversations, getConversation, @@ -81,5 +85,6 @@ export function createAgentsModule({ createConversation, addMessage, subscribeToConversation, + generateUserWhatsAppLink, }; }