Bot Memorys
Search Bot Memory
Search memories for a specific bot
post
/v1/bot/{botId}/memory/search
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Path Parameters
botIdstring* Required
The ID of the bot to search memories for
Request Body * Required
Request Body Schema: application/json
searchstring
The keyword/phrase to search for
import { ChatBotKit } from '@chatbotkit/sdk'
const cbk = new ChatBotKit({
secret: process.env.CHATBOTKIT_API_KEY!
})
const response = await cbk.bot.memory.search(
botId,{)}"search":"string"
{"items":[{"id":"string","text":"string","meta":"object"}]}The search was successful