🀝 Query and edit UnoPim product catalogs with OpenAI GPT-4o and Slack

⚑ 0 views · 🀝 CRM & Sales Operations

Description

Quick overview

A chat window for your UnoPim catalog. An OpenAI GPT-4o agent answers questions about your products and writes catalog data back through six UnoPim tools. Every reply is then routed by the workflow itself: a write is read back from UnoPim to confirm it landed, logged to a Google Sheet and announced in Slack, while anything the agent could not resolve opens a Linear issue.

How it works

  1. The Chat Trigger opens a chat window that anyone on your team can use, with no n8n knowledge needed.
  2. A Settings node holds the locale, the channel and a read-only switch, so the rules live in one place rather than buried in the prompt.
  3. An OpenAI GPT-4o model drives a tool-calling agent whose system message teaches it how UnoPim stores data.
  4. Six UnoPim tools are attached to the agent. List products browses the catalog, Look up a product reads one SKU in full, and Update a product writes back with PATCH.
  5. List attributes and List families are what stop the agent inventing an attribute code or missing a field the family requires. It checks both before any write. Look up a configurable product covers products with variants, which UnoPim keeps on a separate endpoint keyed by code rather than SKU.
  6. A window buffer memory keeps the last fifteen messages, so a follow-up such as β€œnow do the same for the other three” still makes sense.
  7. The agent ends every reply with a STATUS block naming the SKU, the field, the old value, the new value and the reason. A Code node parses that block into real fields, so the rest of the workflow is deterministic rather than trusting the model to call the right tool.
  8. A Switch routes on that status. On changed, the SKU is fetched back from UnoPim, because a write is only believed once it reads back. The before and after values are appended to a Google Sheet with a confirmed flag, and the change is posted to Slack.
  9. On unresolved, the gap becomes a Linear issue instead of an invented value. On answered, the reply goes straight back to the chat.

Setup

  1. Install the community node n8n-nodes-unopim from Settings, Community nodes. This template is self-hosted only, because n8n Cloud cannot install community nodes.
  2. In UnoPim open Configuration, Integrations, API Keys and create a key. All four values the credential needs come from the same row.
  3. Add the UnoPim API credential. The URL is the application root, for example https://demo.unopim.com, not the admin address.
  4. Add an OpenAI credential and confirm it can reach gpt-4o.
  5. Pick the Google Sheet and worksheet for the change log, choose your Linear team, and select the Slack channel for announcements.
  6. Read the system message before you share the chat. It is what keeps the agent from writing something you did not approve.

Requirements

Customization

Additional info

πŸ”— Nodes Used

Google Sheets, Slack, Linear, AI Agent, OpenAI Chat Model, Simple Memory

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup