Skip to main content

Generate custom text content with IBM Granite 3.3 8B instruct AI

Workflow preview

Workflow preview
100%
Generate custom text content with IBM Granite 3.3 8B instruct AI preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Generate Custom Text Content with IBM Granite 3.3 8B Instruct AI This workflow connects to Replicate’s API and uses the ibm granite/granite 3.3 8b instruct model to generate text. SECTION 1: T...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.wait, n8n-nodes-base.if, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Yaron Been.

Original n8n.io source

1.1 Workflow description

Title
Generate custom text content with IBM Granite 3.3 8B instruct AI
Workflow name
Generate custom text content with IBM Granite 3.3 8B instruct AI

Generate Custom Text Content with IBM Granite 3.3 8B Instruct AI

This workflow connects to Replicate’s API and uses the ibm-granite/granite-3.3-8b-instruct model to generate text.


🔵 SECTION 1: Trigger & Setup

⚙️ Nodes

1️⃣ On clicking 'execute'

  • What it does: Starts the workflow manually when you hit Execute.
  • Why it’s useful: Perfect for testing text generation on-demand.

2️⃣ Set API Key

  • What it does: Stores your Replicate API key securely.
  • Why it’s useful: You don’t hardcode credentials into HTTP nodes — just set them once here.
  • Beginner tip: Replace YOUR_REPLICATE_API_KEY with your actual API key.

💡 Beginner Benefit

✅ No coding needed to handle authentication. ✅ You can reuse the same setup for other Replicate models.


🤖 SECTION 2: Model Request & Polling

⚙️ Nodes

3️⃣ Create Prediction (HTTP Request)

  • What it does: Sends a POST request to Replicate’s API to start a text generation job.
  • Parameters include: temperature, max_tokens, top_k, top_p.
  • Why it’s useful: Controls how creative or focused the AI text output will be.

4️⃣ Extract Prediction ID (Code)

  • What it does: Pulls the prediction ID and builds a URL for checking status.
  • Why it’s useful: Replicate jobs run asynchronously, so you need the ID to track progress.

5️⃣ Wait

  • What it does: Pauses for 2 seconds before checking the prediction again.
  • Why it’s useful: Prevents spamming the API with too many requests.

6️⃣ Check Prediction Status (HTTP Request)

  • What it does: Polls the Replicate API for the current status (e.g., starting, processing, succeeded).
  • Why it’s useful: Lets you loop until the AI finishes generating text.

7️⃣ Check If Complete (IF Condition)

  • What it does: If the status is succeeded, it goes to “Process Result.” Otherwise, it loops back to Wait and retries.
  • Why it’s useful: Creates an automated polling loop without writing complex code.

💡 Beginner Benefit

✅ No need to manually refresh or check job status. ✅ Workflow keeps retrying until text is ready. ✅ Smart looping built-in with Wait + If Condition.


🟢 SECTION 3: Process & Output

⚙️ Nodes

8️⃣ Process Result (Code)

  • What it does: Collects the final AI output, status, metrics, and timestamps.

  • Adds info like:

    • output → Generated text
    • modelibm-granite/granite-3.3-8b-instruct
    • metrics → Performance data
  • Why it’s useful: Gives you a neat, structured JSON result that’s easy to send to Sheets, Notion, or any app.


💡 Beginner Benefit

✅ Ready-to-use text output. ✅ Easy integration with any database or CRM. ✅ Transparent metrics (when it started, when it finished, etc.).


✅✅✅ ✨ FULL FLOW OVERVIEW

Section What happens
Trigger & Setup Start workflow + set Replicate API key.
🤖 Model Request & Polling Send request → get Prediction ID → loop until job completes.
🟢 Process & Output Extract clean AI-generated text + metadata for storage or further workflows.

📌 How You Benefit Overall

✅ No coding needed — just configure your API key. ✅ Reliable polling — the workflow waits until results are ready. ✅ Flexible — you can extend output to Google Sheets, Slack, Notion, or email. ✅ Beginner-friendly — clean separation of input, process, and output.


✨ With this workflow, you’ve turned Replicate’s IBM Granite LLM into a no-code text generator — running entirely inside n8n! ✨


1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - On clicking 'execute'

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Set API Key

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.3

Block 3 - Create Prediction

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - Extract Prediction ID

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1

Block 6 - Check Prediction Status

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 7 - Check If Complete

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 8 - Process Result

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note9

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Generate custom text content with IBM Granite 3.3 8B instruct AI
Complexity intermediate
Nodes 13
Categories Content Creation, Multimodal AI
Author Yaron Been
Published 04 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6968/6968.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate custom text content with IBM Granite 3.3 8B instruct AI do?

Generate Custom Text Content with IBM Granite 3.3 8B Instruct AI This workflow connects to Replicate’s API and uses the ibm granite/granite 3.3 8b instruct model to generate text. SECTION 1: T...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.