Skip to main content

Build a Hiring Tracker with Claude, Postgres, and qbash

Alex MacLeod

In this video Alex MacLeod builds a hiring tracker on a Postgres database from one Claude chat with the qbash MCP. A company that is hiring data engineers will probably need data tools too, so the tracker watches the job boards of 251 target accounts in HubSpot. Most of them post jobs on Greenhouse, Ashby or Lever, which all have public APIs and list about 27,000 open roles between them. A board only shows what is open today, so a nightly qbash Task saves every role to the database and keeps the history. Sales reps then ask questions about it from Slack or Claude.

What's covered

  • Connecting a Postgres database to qbash with a login that can change the schema
  • Asking Claude to design and create the tables
  • Approving the schema change in qbash
  • Building the nightly Job board snapshot Task
  • The Hiring Signals Task and its five tools
  • Asking questions and logging a contact from Slack and Claude
  • The run log for every call

Connect the database with a login that can change the schema

The database is connected in qbash as a PostgreSQL credential called Hiring database. The credential form asks what the login can do, with three options: Only read, Read and change data, and Everything, including schema changes. Alex picks the last one because Claude is about to build the tables. Claude only gets the database tools that match the level you select. Tasks run their own code, and a Task that hands the database to an AI prompt can pass it read only.

Ask Claude to design the tables

All three tables go in one message to Claude:

Our Hiring database in qbash is an empty Postgres database. Design the tables: companies (from HubSpot, plus which job board each one uses), postings (each role with the date it was posted, when we first and last saw it, when it closed, its team, its seniority and the tools it mentions, and keep the full description), and a contacts log for when a rep reaches out. Then create them.

Claude comes back with three tables, companies, postings and contact_log. Each row in postings stores the job board's own ID for the role in external_id, with a unique key on company plus posting ID. When the worker sees the same posting the next night, it finds the row by that ID and updates it. The tools column is an indexed text array of the tools the description mentions, so a search for Snowflake doesn't have to read all 27,000 rows.

Approve the schema change

Claude's first attempt to create a table is refused, because the approval Alex had given covered reads only. Claude replies with a schema-change approval link. The page in qbash asks "Allow your MCP apps to use your PostgreSQL account Hiring database?" and lets you pick what it can do and how long to allow it, from 1 hour to Always. Alex picks Read, change data and change the schema for 1 hour, clicks Allow and tells Claude "Done, try again."

Claude creates the three tables and their indexes, then reads the database back and reports that everything matches the design. In PG Web the three tables are there and empty.

Build the nightly worker

Job board snapshot is a qbash Task. A Task is an AI cloud function written in Python that qbash hosts on secure cloud infrastructure. Describing this one takes a few sentences:

Now build a task called Job board snapshot that runs every night at 2am, using our Hiring database. For each Prospect company in HubSpot, if we don't know its job board yet, try its name and domain as the board name on Greenhouse, Ashby and Lever's public job APIs, and keep the one with the most jobs. Then fetch every board, save the roles, and mark roles that disappeared as closed. Use AI to tag team and seniority from the job titles, in batches, only for new roles. Tools mentioned can be a plain keyword match on the description, but brand names that are also ordinary words, like Outreach or Spark, only count when capitalized.

Claude hands the request to the qbash builder. The builder writes the Python, sets the schedule, asks which HubSpot account to use and test runs the Task before saving it. The first test run loaded 251 prospect companies from HubSpot and failed on its first database write, before anything was saved. Claude had the builder fix it and ran the Task again. The rerun found boards for 248 of the 251 companies, and PG Web now shows 27,151 rows in postings.

The Hiring Signals Task

The sales team calls a second Task, Hiring Signals, which reads the same tables. It has five tools:

  • signals ranks accounts by new roles
  • company shows one account in detail
  • log_contact logs outreach and adds a note in HubSpot
  • add_company adds an account and finds its board
  • digest posts the Monday digest to Slack

To find new roles in a date range, the Task uses posted_at, the date the job board said each role was posted. The video shows the query in the task editor, then runs a version of it in PG Web that asks which companies posted data roles in the last 30 days that mention Snowflake:

select c.name, count(*) as data_roles
from postings p
join companies c on c.id = p.company_id
where 'Snowflake' = any(p.tools)
  and p.title ~* 'data'
  and p.posted_at > now() - interval '30 days'
  and p.closed_at is null
group by c.name
order by data_roles desc;

It returns 35 rows in 35 ms. Snowflake itself is first with six roles, then Airwallex with four.

Ask from Slack and Claude

In Slack, a rep asks "use Hiring Signals: what is Airwallex hiring for right now?" and then logs the contact:

use Hiring Signals to log that I emailed Airwallex's head of data today about their data platform roles

The reply says it logged the outreach in the Hiring database, with Alex MacLeod as the rep and email as the channel, and added a note on the Airwallex company record in HubSpot. Airwallex is now left out of signals results and the weekly digest for the next 60 days.

The question in Claude:

Use Hiring Signals: which accounts posted data engineering roles in the last 30 days that mention Snowflake, and that nobody has contacted?

The database has no Data Engineering team, because roles sit under the broader Engineering team, so Claude runs Hiring Signals again for Engineering roles that mention Snowflake. Its answer is 49 accounts that posted them between Oct 18 and Nov 17, none of them contacted. Snowflake leads with 39 roles, followed by Chainguard with 16 and Braze with 5. Claude points out that the list matches all Engineering roles and that Snowflake at the top is probably the vendor hiring for itself. It offers to change the Task to filter by job title as well.

Every run is logged

The Logs tab on Hiring Signals lists each call with its status, start time, duration, number of steps and who triggered it. Scheduled runs of Job board snapshot are logged with their steps in the same way.

The PostgreSQL connector, HubSpot connector and Slack connector pages cover each account used in the video. Official MCP server has the setup steps for Claude, ChatGPT and other MCP clients.

Start free at qbash.com →

Stay in the loop

Product updates, tutorials, and AI insights. No spam.