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, }; }