iMessages Calorie Bot

An AI-powered nutrition tracker that analyzes meal photos and provides calorie counts, nutritional information, and daily/weekly/monthly reports via iMessage.

16 nodes

Intermediate

~5 min setup

AIHealthOpenAIPostgresWebhooksImage Analysis

Workflow Preview

InteractiveJSON

Workflow Automation - n8n

Using the n8n HTTP Request Node to Send a Blooio.com Message

Follow these steps to configure your existing HTTP Request node in n8n so you can send SMS or iMessage via the Blooio.com API.

1. Open Your HTTP Request Node

  • In your workflow, click on the HTTP Request node you’ve already added (e.g. Send Message).

2. Set Up the Request

Field Value
Request Method POST
URL https://backend.blooio.com/v1/api/messages
Response Format JSON
Body Content Type JSON (application/json)

3. Add Required Headers

Add authentication using Bearer token:

Authorization: Bearer YOUR_API_TOKEN
Content-Type:  application/json

Message Received Webhook (New Schema):

{
  "event": "message.received",
  "message_id": "3FdaRdsf94pQRl85yi-vg",
  "external_id": "+11111111111",
  "text": "Look what I'm having for lunch",
  "attachments": [
    {
      "id": "GEhyfDbTIGbNmyQlqlvac",
      "mime_type": "image/jpeg",
      "file_name": "IMG_7780.heic.jpeg",
      "url": "https://...",
      "size": 911831,
      "height": 975,
      "width": 731
    }
  ],
  "protocol": "imessage",
  "timestamp": 1763717044386,
  "received_at": 1763717039911,
  "device_id": "735E425E"
}

🚀 Start Here: Blooio Nutrition Tracker Setup

Welcome! Before this n8n workflow can analyze meal photos and send nutrition summaries via SMS or iMessage, follow these steps to get set up:

✅ Step 1: Get Your Blooio API Token

  1. Visit https://blooio.com
  2. Sign up for a dedicated instance
  3. Navigate to Settings → API Keys
  4. Generate a new token and copy it.

🔐 Keep it safe! You’ll paste it in the HTTP Request node where it says YOUR_API_TOKEN.

✅ Step 2: Connect Blooio to This Workflow

In the Send Message node:

  • Replace the Bearer token credential with your API key

✅ Step 3: Test the Webhook

Send an iMessage with a meal photo or description to your Blooio-connected number.

This will:

  • Trigger the Webhook node
  • Analyze the meal using AI
  • Return a nutrition breakdown with daily/weekly/monthly stats

📷 What You Can Send

  • Meal photos (ideal!)
  • Text descriptions of meals
  • Multiple items in one image

Enjoy tracking your nutrition effortlessly! 🥦📊📩

What This Workflow Does

Input

Photo of your meal

Output

Detailed nutrition breakdown with calories, protein, carbs, fat, and health score

Quick Setup Guide

Step 1

Get Your Blooio API Token

  1. Visit https://blooio.com
  2. Sign up for a dedicated instance
  3. Navigate to Settings → API Keys
  4. Generate a new token and copy it.

🔐 Keep it safe! You'll paste it in the HTTP Request node where it says YOUR_API_TOKEN.

Step 2

Connect Blooio to This Workflow

In the Send Message node:

  • Replace the Bearer token credential with your API key

Step 3

Test the Webhook

Send an iMessage with a meal photo or description to your Blooio-connected number.

This will:

  • Trigger the Webhook node
  • Analyze the meal using AI
  • Return a nutrition breakdown with daily/weekly/monthly stats

Requirements

Blooio Account

Sign up for Blooio to get your API key and start sending iMessages.

n8n Instance

Use n8n Cloud or self-host your own instance to run this workflow.

OpenAI API Key

Required for AI-powered features in this workflow template.