# How do you send the job offers Rodz detects to an n8n workflow?

> Source: https://www.rodz.io/en/guides/use-cases/job-offers-to-n8n/
> Updated on 2026-11-23 · Peter Cools · Recipe · Job offers (hiring) · n8n

## Short answer

Create a Job Offers signal in Rodz and paste the URL of an n8n Webhook node as the webhookUrl. Every hiring company arrives as a POST with the offer’s title, location, description and link. A Code node verifies the HMAC signature, an IF node filters, then n8n routes to your CRM or Slack. There is no native Rodz node: everything goes through the webhook. A lead costs 2 credits.

## Key facts

- A job offer costs **2 credits** per lead, plus 0.5 credit per email found, charged on success only.
- Every delivery is signed with **HMAC-SHA256** (`X-Webhook-Signature`, `X-Webhook-Timestamp`) and carries an `X-Webhook-Id` that is the same across attempts.
- A company is delivered **at most once a day**, however many jobs it posts.
- The offer fields are `signal.job_offer_title`, `signal.job_offer_url`, `signal.job_offer_location`, `signal.job_offer_description` and `signal.job_offer_published_date`.

Cost: 2 credits per lead (+0.5 credit per email found)

## Before you start

- A Rodz account with credits and an API key (Integrations → API), which the webhook secret is attached to. Software vendors and agencies: [partners](/en/partners/). Prospecting for your own company? [Find the tool that includes Rodz signals](/en/get-started/).
- An n8n instance reachable from the internet (n8n Cloud or self-hosted over HTTPS).
- Self-hosted: in n8n’s environment, `NODE_FUNCTION_ALLOW_BUILTIN=crypto` (so the Code node can use the `crypto` module), `N8N_BLOCK_ENV_ACCESS_IN_NODE=false` (without it `$env` is refused in the Code node with “access to env vars denied”) and `RODZ_WEBHOOK_SECRET`, your API key’s webhook secret. This recipe was replayed on self-hosted n8n 2.49.5; it was not tried on n8n Cloud, where these variables cannot be set: read the secret another way, for example by pasting it into the Code node.
- The job titles that signal a need for your offer (for example "Account Executive").

## Steps

### 1. Create the Webhook node in n8n

In a new workflow, add a **Webhook** node: method **POST**, response mode **Immediately** (Rodz expects a fast `2xx`). In the options, turn on **Raw Body**: the signature is computed on the exact bytes received, not on reformatted JSON. Note: with the immediate response, n8n answers `200` before the Code node runs. A message with an invalid signature (a secret copied wrongly or regenerated) is therefore acknowledged and then rejected inside n8n, and Rodz does not retry it: watch n8n’s failed executions.

Copy the node’s production URL (not the test URL, which only answers while you listen manually).

### 2. Create the Job Offers signal with this URL

In Rodz, add the **Job Offers** signal, open the signal’s **Integrations** tab and paste the n8n URL in the **Custom Webhook URL** field. In the **Signature** list just below, pick the API key whose secret you will use (deliveries are then signed); **Create an API key** opens the creation if you have none. You can also create the signal through the API. To also receive a decision-maker at the hiring company, turn on persona targeting: without it, `contact` is `""`.

Leave the signal in **draft** while you test.

`Create through the API (draft status)`

```bash
curl -X POST "https://api.rodz.io/api/v1/signals/job-offers" \
  -H "Authorization: Bearer $RODZ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Sales teams that are hiring",
    "webhookUrl": "https://n8n.example.com/webhook/rodz-jobs",
    "dailyLeadLimit": 20,
    "status": "draft",
    "config": {
      "jobTitleInclude": ["Account Executive", "Business Developer"],
      "jobTitleExclude": ["Intern", "Internship"],
      "locations": ["France"],
      "publishedDate": "7d",
      "enablePersonaTargeting": true,
      "targetPersonas": ["Sales Director"]
    }
  }'
```

### 3. Verify the signature in a Code node

Add a **Code** node (JavaScript, *Run Once for All Items*) after the Webhook and paste the script below as is: there is nothing to write. It recomputes the HMAC-SHA256 of `timestamp + "." + raw body` with your webhook secret (Integrations → API in Rodz), compares in constant time and rejects messages that are too old. Store the secret in an n8n environment variable (`RODZ_WEBHOOK_SECRET`) rather than in the code.

`n8n, Code node: verify-rodz-signature.js`

```javascript
const crypto = require('crypto');

const SECRET = $env.RODZ_WEBHOOK_SECRET; // Integrations → API in Rodz
const TOLERANCE_SECONDS = 300;

const item = $input.first();
const headers = item.json.headers || {};
const signature = headers['x-webhook-signature'] || '';
const timestamp = headers['x-webhook-timestamp'] || '';

// Raw body as received (Raw Body option of the Webhook node).
const raw = await this.helpers.getBinaryDataBuffer(0, 'data');

const expected = crypto
  .createHmac('sha256', SECRET)
  .update(Buffer.concat([Buffer.from(`${timestamp}.`, 'utf8'), raw]))
  .digest('hex');

const a = Buffer.from(expected, 'utf8');
const b = Buffer.from(signature, 'utf8');
if (a.length !== b.length || !crypto.timingSafeEqual(a, b)) {
  throw new Error('Rodz webhook: invalid signature');
}
if (Math.abs(Date.now() / 1000 - Number(timestamp)) > TOLERANCE_SECONDS) {
  throw new Error('Rodz webhook: timestamp outside tolerance');
}

const payload = JSON.parse(raw.toString('utf8'));
return [{ json: { webhookId: headers['x-webhook-id'], ...payload } }];
```

### 4. Find the offer and route the company

After the Code node, the lead body is directly in the next node’s fields: `{{ $json.signal.job_offer_title }}`, `{{ $json.company.name }}`, `{{ $json.company.website }}`. The Code node has flattened the lead body; the delivery id is in `webhookId`.

Add an **IF** node that ignores test messages (`signal.is_test` true: the key only exists on a test), then connect the node of your choice: your CRM, a Slack message with `signal.job_offer_title` and `signal.job_offer_url`, or a spreadsheet row.

Retries reuse the same `X-Webhook-Id`: before writing to the CRM, skip a `webhookId` you have already processed (for example with the **Remove Duplicates** node, operation **Remove Items Processed in Previous Executions**, value `{{ $json.webhookId }}`: its default setting only compares items within one execution, and a retry arrives in another execution, or a lookup in your database).

### 5. Test, then activate

Activate the n8n workflow, then send a test lead from Rodz: the **Test** button next to the URL in the signal’s Integrations tab, or `POST /api/v1/signals/{signal_id}/test-webhook` (route for partner accounts only). The response gives the code n8n returned and `signed`: `false` means no API key is linked to the signal, so deliveries go out unsigned and the Code node will reject them. When everything is green, set the signal to **Active**.

`Send a test payload`

```bash
curl -X POST "https://api.rodz.io/api/v1/signals/$SIGNAL_ID/test-webhook" \
  -H "Authorization: Bearer $RODZ_API_KEY"
```

## Example payload

What the Code node outputs after verification for a job offer with persona targeting on (without it, `contact` is `""`).

```json
{
  "webhookId": "9b2f6c1e-4d5a-4f7b-8c3d-1e2f3a4b5c6d",
  "signal": {
    "id": "f6a7b8c9-d0e1-4f2a-b3c4-d5e6f7a8b9c0",
    "name": "Sales teams that are hiring",
    "type": "job_offers",
    "last_signal": "Job Offer",
    "last_signal_date": "2026-10-09",
    "heat_score": 70,
    "job_offer_url": "https://careers.example/northwind/account-executive",
    "job_offer_title": "Account Executive Mid-Market",
    "job_offer_location": "Lyon (France)",
    "job_offer_description": "We are hiring an Account Executive to grow our mid-market portfolio...",
    "job_offer_date": "2026-10-08",
    "job_offer_published_date": "2026-10-08",
    "job_offer_source": "LinkedIn",
    "matched_keywords": "Account Executive"
  },
  "contact": {
    "lead_id": "a7b8c9d0-e1f2-3456-7890-abcdef012345",
    "created_at": "2026-10-09T06:30:00+00:00",
    "first_name": "Sophie",
    "last_name": "Moreau",
    "email": "sophie.moreau@northwind.example",
    "phone": "",
    "title": "Sales Director",
    "location": "Lyon, Auvergne-Rhône-Alpes, France",
    "country_code": "FR",
    "city": "Lyon",
    "linkedin_profile_url": "https://www.linkedin.com/in/sophie-moreau-example",
    "sales_navigator_profile_url": "",
    "matched_persona": "Sales Director"
  },
  "company": {
    "name": "Northwind Software",
    "website": "https://northwind.example",
    "linkedin_url": "https://www.linkedin.com/company/northwind-software-example",
    "industry": "Software Development",
    "employee_count": 180,
    "employee_range": "51-200",
    "hq_country_code": "FR",
    "hq_city": "Lyon"
  }
}
```

## The fields to route a job offer

| Field                             | Content                               | Use in n8n                     |
| --------------------------------- | ------------------------------------- | ------------------------------ |
| `signal.job_offer_title`          | Job title                             | IF branches by role            |
| `signal.job_offer_url`            | Link to the offer                     | Link in the Slack message      |
| `signal.job_offer_location`       | Job location                          | Assignment to the regional rep |
| `signal.job_offer_description`    | Offer description                     | Angle of approach              |
| `signal.job_offer_published_date` | Publication date                      | Freshness of the offer         |
| `contact.*`                       | Targeted decision-maker (if personas) | Contact creation               |
| `company.name`, `company.website` | The hiring company                    | Company deduplication key      |

## A typical workflow

1. **Webhook** (POST, Raw Body, immediate response).
2. **Code**: signature check, then the lead JSON.
3. **IF**: `signal.is_test` present → stop.
4. **Remove Duplicates** on `webhookId` (operation “Remove Items Processed in Previous Executions”).
5. **CRM**: look up the company by domain (`company.website`), create or update, then the contact.
6. **Slack**: a message to the regional rep with the job title and the link.

If you do not need custom logic, HubSpot and Pipedrive are native Rodz destinations: see [job offers to HubSpot](/en/guides/use-cases/job-offers-to-hubspot/) and [job offers to Pipedrive](/en/guides/use-cases/job-offers-to-pipedrive/).

## Troubleshooting

- **The Code node rejects everything**: check that Raw Body is on, that the secret is the one of the API key linked to the signal, and that the test says `signed: true`.
- **`require('crypto')` is refused**: when self-hosted, add `NODE_FUNCTION_ALLOW_BUILTIN=crypto` to n8n’s environment.
- **`access to env vars denied` in the Code node**: when self-hosted, add `N8N_BLOCK_ENV_ACCESS_IN_NODE=false` to n8n’s environment, or paste the secret into the node.
- **A lead vanishes with no error on the Rodz side**: with the immediate response, a signature the Code node refuses has already been acknowledged with `200`, so it is not retried. Look for the failed execution in n8n, then fix the secret.
- **A retry goes through twice**: the Remove Duplicates node must be set to “Remove Items Processed in Previous Executions”, not left on its defaults.
- **Nothing arrives**: the workflow must be active and the URL must be the Webhook node’s production URL.

## Frequently asked questions

### Is there a native Rodz node in n8n?

No. The integration goes through the signal’s webhook: Rodz POSTs each lead to the URL of your Webhook node. To read or create signals from n8n, use the HTTP Request node with the Rodz API and your key in an `Authorization: Bearer` header.

### Can I skip the Code node?

The Code node verifies the HMAC signature, the proof that the message comes from Rodz. The script on this page pastes as is. Without code, you can pick “No API key (unsigned)” in the signal’s Signature list: requests go out without signature headers, which is enough if your endpoint authenticates with a secret token in its URL (that is the app’s own guidance). The n8n Webhook node’s address then holds the only secret: keep it private, because anyone who knows it can send you fake leads. In that case, turn Raw Body off and delete the Code node: n8n’s Webhook node then puts the lead’s JSON body under `body` (for example `{{ $json.body.signal.job_offer_title }}`) and the delivery id in `headers['x-webhook-id']`. Adapt the IF node too: its condition must read `{{ $json.body.signal.is_test }}` (“exists”), otherwise test messages are not filtered and reach your CRM as real leads, with no error at all.

### Why turn on Raw Body in the Webhook node?

The HMAC signature covers the exact bytes of the body received. If you recompute it on JSON that was parsed and rewritten, the order or spaces change and verification fails.

### What happens if n8n is down?

A timeout, a connection error or a `5xx` response triggers retries: several within about two hours, then every 30 minutes, 1 h, 2 h, 4 h, then every 6 hours, up to 14 days after the lead was created. A `4xx` response is treated as final and is not retried, except `429`. After a longer outage, `POST /api/v1/signals/{signal_id}/replay-webhook` resends every delivered lead of the signal, except disqualified leads; they carry `signal.is_replay` set to true.

### How do I avoid duplicates in my CRM?

Deduplicate on the `X-Webhook-Id` header, the same on every attempt of one delivery: it is the only guaranteed key for a company-level lead without a contact. Keep the processed ids for at least 14 days.

## Sources

- [Rodz API reference: Job Offers signal, webhooks, signature and retries](https://www.rodz.io/en/docs/api/)
- [n8n: Webhook node (Raw Body option)](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.webhook/)
- [n8n: Code node](https://docs.n8n.io/code/code-node/)
- [RFC 2104: HMAC](https://www.rfc-editor.org/rfc/rfc2104)

## Related guides

- https://www.rodz.io/en/guides/api/webhook-receiver-hmac/
- https://www.rodz.io/en/guides/use-cases/job-offers-to-hubspot/
- https://www.rodz.io/en/guides/use-cases/funding-rounds-to-n8n/
