Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / AI Agents & Assistants

AI Agents & Assistants

Chat with Search Console Data Using OpenAI and Postgres

When a webhook receives a chat question, an OpenAI agent queries the Search Console API, remembers the conversation in Postgres and responds.

What it does

### AI Agent Sub-node - OpenAI Chat Model This sub-node utilizes the selected OpenAI Chat Model. You can replace it with any LLM that supports tool calling. ### ⚠️ Choose Your Model In this template, the default model is gpt-4o, a costly option. If you'd like a more affordable alternative, select gpt4-o-mini, though note that responses may occasionally be of slightly lower quality compared to gpt-4o.

The steps

  1. Postgres Chat Memory
  2. OpenAI Chat Model
  3. Set fields
  4. Webhook - ChatInput
  5. Respond to Webhook
  6. Call Search Console Tool
  7. Tool calling
  8. Switch
  9. Set fields - Consruct API CALL
  10. Set fields - Create searchConsoleDataArray
  11. Set fields - Create searchConsoleDataArray 2
  12. Search Console - Get Custom Insights
  13. ## Search Console - Get List of Properties
  14. Array aggregation - response to AI Agent

16 steps in total.

Similar automations