The n8n-nodes-bee-ai Package

Blog Post: Bee AI n8n node

Github Repo: AshDevFr/n8n-nodes-bee-ai

Sub Workflows to fetch them all

Bee AI - Fetch all Conversations

Note: the Conversation model is a nested object, so because of that, I added a code node to flatten the results.

Conversation (GET /v1/{userId}/conversations/{id} response):

{
    "conversation": {
        "id": 3456789,
        "summary": "...",
        ...
    }
}

Bee AI - Fetch all Facts

Bee AI - Fetch all Todos

Bee AI - Fetch all Locations

Workflows

Bee AI - Backup v2

Uses the Fetch all x workflows to get all the data, then insert it into a MongoDB database anf a json file in Google Drive.

I use the Mongo Database to store the data, because it’s easier to query and allows more flexibility than the current API provided by Bee AI.

Bee AI - Retry Stuck Processing Conversations

Uses the Fetch all Conversations workflow to get all the conversations, then filter out the ones that are stuck in PROCESSING state for more than 30 minutes.

Bee AI - Use MongoDB for better flexibility

Here is an example of how to use the MongoDB node to get the conversations from the last day.

It uses this query to gather the coverstions that were ended in the last day: { "end_time": { "$gt": "{{ $now.minus(1, 'day') }}" } }