botpress / botpress

The open-source hub to build & deploy GPT/LLM Agents ⚡️
https://botpress.com
MIT License
12.18k stars 1.68k forks source link

Remove WhatsApp conversations #13109

Open amjad9636 opened 1 month ago

amjad9636 commented 1 month ago

Make sure the issue is related to code located in this repository.

Description of the bug or feature request

Please add the option to remove WhatsApp conversations from dashboard

franklevasseur commented 1 month ago

Hey man, thanks for sharing your suggestions on potential features for the Dashboard.

While these features aren't currently within our immediate priority list, we genuinely value the input from our community.

First, I recommend that you share these ideas on our Discord channel. By doing so, you can gauge the interest within our community. If your suggestions garner enough support and upvotes, they may indeed become part of our development priorities in the future.

Second, you can also explore the possibility of using the API to delete a conversation. Here's a script that does just that:

import { Client } from '@botpress/client'

const main = async () => {
  const client = new Client({
    apiUrl: 'https://api.botpress.cloud',
    workspaceId: process.env.WORKSPACE_ID, // your workspace id
    token: process.env.PAT, // your personal access token
    botId: process.env.BOT_ID, // the bot that you had the conversation with
  })

  await client.deleteConversation({
    id: process.env.CONVERSATION_ID, // the conversation id that you want to delete
  })
}

void main()

Let me know if you need any help.

Once again, thank you for your input.

I'll leave the issue open since it's a valid feature request.

Frank

damiendidi commented 3 weeks ago

Hi, thanks for sharing, it's very interesting !

Kodi