---
title: "Custom Hacker News summaries in your inbox—build an AI Agent with Inngest and Render"
description: "A tutorial for building an AI agent that periodically searches Hacker News for user-defined topics and questions and emails summaries."
url: "https://swe.quest/articles/custom-hacker-news-summaries-in-your-inbox-build-an-ai-agent-with-inngest-and-9ab4714647bce245"
canonical: "https://render.com/blog/hacker-news-ai-agent-inngest-render"
source: "Render"
published: "2025-01-16"
difficulty: "medium"
kind: "How-to"
reading_minutes: 8
tags: ["ai-agents","vector-search","postgres","typescript","llms"]
---

# Custom Hacker News summaries in your inbox—build an AI Agent with Inngest and Render

A post on [Render](https://swe.quest/sources/render.md), published 2025-01-16, 8 min read, How-to. Original: [https://render.com/blog/hacker-news-ai-agent-inngest-render](https://render.com/blog/hacker-news-ai-agent-inngest-render)

## Summary

A tutorial for building an AI agent that periodically searches Hacker News for user-defined topics and questions and emails summaries. The stack has three parts on Render: PostgreSQL with pgvector, using an HNSW index over OpenAI ada-002 embeddings; a Playwright-based indexer cron job that scrapes Algolia HN Search; and a Next.js app hosting the UI and the workflow. Inngest orchestrates the workflow steps with retries. Its AgentKit library defines a tool-using Search Agent (search and identify-trends, using a cosine distance threshold under 0.3 and per-day aggregation) and a Summarizer Agent, linked by shared network state and custom routing.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Vector search](https://swe.quest/tags/vector-search.md) (Data & databases)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- Next.js basics ([easy posts on React](https://swe.quest/tags/react.md?difficulty=easy))
- PostgreSQL ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- vector embeddings ([easy posts on RAG & retrieval](https://swe.quest/tags/rag.md?difficulty=easy))

## Keywords

Inngest, AgentKit, Render, pgvector, Next.js, Playwright, Hacker News, OpenAI

## Related posts

- [Trace & Evaluate your Agent with Arize Phoenix](https://swe.quest/articles/trace-evaluate-your-agent-with-arize-phoenix-ea5d226abd11d54e.md): Hugging Face · 2025-02-28 · Medium · 6 min read · AI agents, Evaluation, Observability, LLMs, Python
  A smolagents CodeAgent with DuckDuckGo search and webpage tools can be instrumented with OpenTelemetry and OpenInference so every agent call is traced in a local or hosted Arize Phoenix instance.
- [Build a custom RAG AI agent in TypeScript and Jupyter](https://swe.quest/articles/build-a-custom-rag-ai-agent-in-typescript-and-jupyter-fc00c37173b8b56a.md): Deno · 2025-03-18 · Medium · 11 min read · RAG & retrieval, AI agents, TypeScript, LLMs
  A local agentic RAG pipeline built in TypeScript inside a Deno Jupyter notebook, using LangChain and LangGraph with Ollama models.
- [Building a Deep Research Agent with Neon and Durable Endpoints](https://swe.quest/articles/building-a-deep-research-agent-with-neon-and-durable-endpoints-ef580145e6461602.md): Neon · 2026-02-24 · Medium · 12 min read · AI agents, PostgreSQL, Vector search, Resilience, LLMs
  A recursive deep research agent built on Neon Postgres with pgvector, Inngest durable endpoints, Claude, Exa search and OpenAI embeddings.
- [Building a Chatbot for Hacker News and Stack Overflow with LlamaIndex and ClickHouse](https://swe.quest/articles/building-a-chatbot-for-hacker-news-and-stack-overflow-with-llamaindex-and-8e7d236d6eb904ee.md): ClickHouse · 2024-02-29 · Medium · 23 min read · RAG & retrieval, Vector search, LLMs, Analytics & OLAP, Python
  HackBot is a chatbot that answers questions about developer opinions by combining text-to-SQL over the 2021 Stack Overflow survey with vector search over 28m embedded Hacker News comments, both stored in ClickHouse and orchestrated with LlamaIndex, OpenAI and Streamlit.
- [Search agent traces by behavior with AI Search in LangSmith](https://swe.quest/articles/search-agent-traces-by-behavior-with-ai-search-in-langsmith-b56f880ffba2ede5.md): LangChain · 2026-10-13 · Medium · 7 min read · Observability, AI agents, LLMs, Search
  LangSmith's AI Search lets users find agent traces by behavior described in plain language (e.g. "did PII leak?", "did the user get frustrated?") by running a fast decision model over each candidate trace rather than relying on lossy embedding-based vector search.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
