Skip to content

Commit 8db30c6

Browse files
authored
whatsapp link (#32)
1 parent 34c1532 commit 8db30c6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/modules/agents.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,17 @@ export function createAgentsModule({
7474
});
7575
};
7676

77+
const generateUserWhatsAppLink = (agentName: string) => {
78+
return axios.post(`/whatsapp/generate-user-link`, { agent_name: agentName });
79+
};
80+
7781
return {
7882
getConversations,
7983
getConversation,
8084
listConversations,
8185
createConversation,
8286
addMessage,
8387
subscribeToConversation,
88+
generateUserWhatsAppLink,
8489
};
8590
}

0 commit comments

Comments
 (0)