Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .editorconfig

This file was deleted.

53 changes: 0 additions & 53 deletions .eslintrc.js

This file was deleted.

5 changes: 0 additions & 5 deletions .eslintrc.prepublish.js

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
push:
branches: [main]
pull_request:

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
lint-and-build:
name: Lint & Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'

- name: Install dependencies
run: npm install --legacy-peer-deps

- name: Lint
run: npm run lint

- name: Build
run: npm run build
72 changes: 72 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Publishes this n8n community node package to npm on every version tag push.
#
# Starting May 1 2026, n8n requires all community nodes to be published via
# GitHub Actions with npm provenance statements. This workflow satisfies that
# requirement. Provenance lets anyone cryptographically verify that a package
# was built by this exact workflow, from this exact repository and commit.
#
# ─── ONE-TIME SETUP ────────────────────────────────────────────────────────────
#
# Option A — OIDC Trusted Publishing (recommended, no long-lived secrets):
# 1. Log in to npmjs.com and open your package's settings.
# 2. Under "Publish access" → "Trusted Publishers", click "Add a publisher".
# 3. Select GitHub Actions and fill in:
# Repository owner: requestyai
# Repository name: n8n-requesty
# Workflow name: publish.yml
# Environment: (leave blank unless you use GitHub Environments)
# 4. Leave the NPM_TOKEN secret unset in this repository. GitHub's OIDC
# token is used instead — no secret ever touches your repo settings.
#
# Option B — npm Automation Token (fallback):
# 1. On npmjs.com: Access Tokens → Generate New Token → Granular Access Token.
# Scope it to this package with "Read and write" publish permission.
# 2. In GitHub: Settings → Secrets and variables → Actions → New secret.
# Name it NPM_TOKEN and paste the token value.
#
# Both options work with --provenance. Provenance is signed by GitHub's OIDC
# infrastructure regardless of how npm authentication is handled.
#
# ─── RELEASE PROCESS ───────────────────────────────────────────────────────────
#
# Run the following command locally to start an interactive release:
#
# npm run release
#
# This will lint, build, prompt for a version bump, update the changelog,
# commit, tag, and push — which triggers this workflow to publish to npm.

name: Publish

on:
push:
tags:
- '*.*.*'

jobs:
publish:
name: Publish to npm
runs-on: ubuntu-latest

permissions:
id-token: write
contents: read

steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Release
run: |
[ -n "$NPM_TOKEN" ] && npm config set //registry.npmjs.org/:_authToken "$NPM_TOKEN"
npm run release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules/
dist/
.DS_Store
pnpm-lock.yaml
package-lock.json
*.tsbuildinfo
2 changes: 0 additions & 2 deletions .npmignore

This file was deleted.

7 changes: 0 additions & 7 deletions .prettierrc.js

This file was deleted.

76 changes: 0 additions & 76 deletions CODE_OF_CONDUCT.md

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE.md → LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 n8n.io
Copyright (c) 2024 Requesty

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
92 changes: 66 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,83 @@
# n8n-requesty
# n8n-nodes-requesty

An n8n community node for Requesty AI integration, allowing you to interact with various AI models through a unified API.
An n8n community node for using [Requesty](https://requesty.ai)-hosted chat models in your n8n workflows.

[![Follow on X](https://img.shields.io/twitter/follow/ThibaultJaigu?style=social&logo=twitter)](https://x.com/ThibaultJaigu)
Requesty is a unified AI gateway providing access to 300+ models from OpenAI, Anthropic, Google, Meta, Mistral, and more — all through a single OpenAI-compatible API with intelligent routing, automatic fallbacks, and cost optimization.

## Features

- Chat with AI models through Requesty's API
- Customize parameters like temperature and max tokens
- View model descriptions and pricing information
[Installation](#installation) | [Credentials](#credentials) | [Usage](#usage) | [Resources](#resources)

## Installation

Install via n8n's Community Nodes:
Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.

In your n8n instance, go to **Settings > Community Nodes** and install:

1. Go to "Settings" > "Community Nodes"
2. Install `n8n-requesty`
```
@requestyai/n8n-nodes-requesty
```

## Configuration
## Credentials

1. Sign up at [Requesty](https://app.requesty.ai/sign-up)
2. Generate an API key at [Getting Started](https://app.requesty.ai/getting-started)
3. Create a credential of type 'Requesty API' in n8n
4. Enter your API key
1. Sign up at [app.requesty.ai](https://app.requesty.ai/sign-up)
2. Go to **Getting Started** and generate an API key at [app.requesty.ai/getting-started](https://app.requesty.ai/getting-started)
3. In n8n, create a new **Requesty API** credential and paste your key

## Usage

1. Add the Requesty node to your workflow
2. Select 'Chat' operation
3. Choose an AI model
4. Optional: Set a system prompt
5. Enter your message
6. Adjust parameters as needed
7. Execute to get the AI response
The **Requesty Chat Model** node connects to any of the 300+ models available through Requesty's unified gateway. Use it anywhere n8n accepts a chat model — e.g., the AI Agent node, Basic LLM Chain, or any AI workflow.

Once your API key is saved, the **Model** dropdown auto-populates with all available models. You can also set it to a model ID directly using an expression (e.g., `anthropic/claude-sonnet-4-20250514`, `openai/gpt-4o`).

### Configuration Options

| Option | Default | Description |
|--------|---------|-------------|
| Temperature | 0.7 | Controls randomness (0 = deterministic, 2 = very random) |
| Maximum Tokens | -1 | Max tokens to generate (-1 for no limit) |
| Top P | 1 | Nucleus sampling probability mass |
| Frequency Penalty | 0 | Penalizes token repetition (-2 to 2) |
| Presence Penalty | 0 | Penalizes already-seen tokens (-2 to 2) |

### Key Features

- **300+ Models**: Access models from OpenAI, Anthropic, Google, Meta, Mistral, Cohere, and more
- **Intelligent Routing**: Automatic fallbacks and load balancing across providers
- **Cost Optimization**: Track spending and optimize model selection
- **OpenAI-Compatible**: Drop-in replacement for any OpenAI-compatible integration
- **Zero Data Retention**: Optional ZDR-compliant model filtering

## Resources

- [Requesty Documentation](https://docs.requesty.ai)
- [Requesty Model Library](https://requesty.ai/models)
- [n8n community nodes documentation](https://docs.n8n.io/integrations/#community-nodes)

## Development

```bash
# Install dependencies
npm install

# Build the node
npm run build

# Run in development mode (starts n8n with hot reload)
npm run dev

# Lint
npm run lint
```

## Publishing

This package uses GitHub Actions with npm provenance for publishing. To release:

## Support
```bash
npm run release
```

For issues or questions, please [open an issue](https://github.com/requestyai/n8n-requesty/issues).
This will lint, build, prompt for a version bump, commit, tag, and push — triggering the publish workflow.

## License

[MIT License](LICENSE.md)
[MIT](LICENSE)
Loading
Loading