n8n-nodes-lescribeaudio 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +128 -13
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -8,22 +8,137 @@ Transcribe long French audio and video recordings (`.mp3`, `.m4a`, `.wav`, `.mp4
8
8
  - **AI inference via Google Cloud Vertex AI (Europe region, Zero Data Retention)** — no training on user data
9
9
  - **No intrusive meeting bot** — asynchronous file/URL submission only
10
10
 
11
- ## Included Nodes
12
- 1. **Le Scribe Audio** (`leScribeAudio`): Submit from URL or binary file, inspect status/segments/summary, export `docx`/`srt`/`vtt`/`txt`/`json`, manage webhooks.
13
- 2. **Le Scribe Audio Trigger** (`leScribeAudioTrigger`): Automatically registers an outbound webhook and validates `X-LeScribe-Signature` (`t=<epoch>,v1=<hmac_sha256>`) on `transcription.completed` and `transcription.failed`.
11
+ ---
14
12
 
15
- ## Ready-to-Import Workflow Templates (`workflows/`)
16
- 1. `1-drive-audio-to-word-summary.json` — Google Drive / Nextcloud folder → 2-pass transcription → `.docx` Word deliverable
17
- 2. `2-mairie-conseil-rgaa-subtitles.json` — Municipal council video → RGAA 4.1 `.VTT` subtitles + `.docx` minutes draft
18
- 3. `3-nextcloud-entretien-shs-iramuteq.json` — Qualitative research interview → full verbatim structured JSON
13
+ ## Installation
14
+
15
+ ### Via n8n Community Nodes UI (Recommended)
16
+
17
+ 1. In your n8n instance, go to **Settings → Community Nodes**.
18
+ 2. Click **Install a community node**.
19
+ 3. Enter `n8n-nodes-lescribeaudio`, acknowledge the risks, and click **Install**.
20
+
21
+ ### Via npm (Self-Hosted)
19
22
 
20
- ## Installation in n8n
21
23
  ```bash
22
24
  npm install n8n-nodes-lescribeaudio
23
25
  ```
24
- Or install directly from **n8n Settings → Community Nodes → `n8n-nodes-lescribeaudio`**.
25
26
 
26
- ## Documentation
27
- - API & MCP Integration Hub: https://lescribeaudio.com/integrations-mcp
28
- - OpenAPI 3.1 Specification: https://lescribeaudio.com/docs/openapi-public-v1.json
29
- - RGPD & Security Overview: https://lescribeaudio.com/securite-rgpd
27
+ Restart n8n after installation.
28
+
29
+ ---
30
+
31
+ ## Credentials
32
+
33
+ Both nodes authenticate with the **Le Scribe Audio API** credential (`leScribeAudioApi`).
34
+
35
+ ### 1. Generate your Personal API Key
36
+
37
+ 1. Sign in to your account on [lescribeaudio.com](https://lescribeaudio.com) (free accounts include 30 minutes of transcription with no credit card required).
38
+ 2. Open the **API & MCP Integrations** page at [https://lescribeaudio.com/integrations-mcp](https://lescribeaudio.com/integrations-mcp) (or generate a token programmatically via `POST /api/v1/public/tokens`).
39
+ 3. Create a new **Personal API Key** — copy the token starting with `lsa_api_...` (it is shown once).
40
+
41
+ ### 2. Configure the Credential in n8n
42
+
43
+ In n8n, go to **Credentials → Add credential → Le Scribe Audio API** and fill in:
44
+
45
+ | Field | Required | Default | Description |
46
+ | :--- | :--- | :--- | :--- |
47
+ | **Personal API Key** | Yes | *(empty)* | Your Le Scribe Audio Personal API Key (`lsa_api_...`), sent automatically as `Authorization: Bearer <token>`. |
48
+ | **Base URL** | Yes | `https://lescribeaudio.com` | Base URL of the Le Scribe Audio API. Keep the default `https://lescribeaudio.com` for production. |
49
+
50
+ Click **Save** — n8n automatically verifies your credentials by calling `GET /api/v1/public/transcriptions?limit=1`.
51
+
52
+ ---
53
+
54
+ ## Operations
55
+
56
+ This package provides **two nodes**:
57
+
58
+ ### 1. Le Scribe Audio (`leScribeAudio`)
59
+
60
+ Action node (also enabled as an n8n AI Agent tool via `usableAsTool: true`).
61
+
62
+ #### Resource: `Transcription`
63
+
64
+ | Operation | API Endpoint | Description & Key Parameters |
65
+ | :--- | :--- | :--- |
66
+ | **Submit From Public URL** (`submitUrl`) | `POST /api/v1/public/transcriptions` | Submit a public HTTPS audio/video URL (`Source Media URL`, optional `Filename Override`, `Verbatim Mode`: `Clean (Edited)` or `Full Verbatim`, `Generate Executive & Chrono-Thematic Summary`, `Context Hints` up to 400 chars, optional `Per-Job Webhook Callback URL`). |
67
+ | **Submit Binary File** (`submitFile`) | `POST /api/v1/public/transcriptions` | Upload an incoming n8n binary file (`Binary Property Name`, default `data`) using `multipart/form-data`, with the same transcription options (`Verbatim Mode`, `Generate Summary`, `Context Hints`, `Per-Job Webhook Callback URL`). |
68
+ | **Get** (`get`) | `GET /api/v1/public/transcriptions/{fileId}` | Retrieve transcription status, metadata, diarized speaker segments, and generated summary for a given `File ID`. |
69
+ | **List** (`list`) | `GET /api/v1/public/transcriptions` | List your recent transcriptions (`Limit`, default `50`). |
70
+ | **Export** (`export`) | `GET /api/v1/public/transcriptions/{fileId}/export` | Export a completed transcription by `File ID` in `Word (.docx)`, `SubRip (.srt)`, `WebVTT (.vtt)`, `Plain Text (.txt)` (returned as binary `data`), or structured `JSON (.json)`. |
71
+
72
+ #### Resource: `Webhook`
73
+
74
+ | Operation | API Endpoint | Description & Key Parameters |
75
+ | :--- | :--- | :--- |
76
+ | **List** (`listWebhooks`) | `GET /api/v1/public/webhooks` | List all configured outbound webhooks on your account. |
77
+ | **Create** (`createWebhook`) | `POST /api/v1/public/webhooks` | Register a new outbound HTTPS endpoint (`Webhook HTTPS URL`). |
78
+ | **Test** (`testWebhook`) | `POST /api/v1/public/webhooks/{webhookId}/test` | Send a signed `webhook.test` event to verify your endpoint (`Webhook ID`). |
79
+ | **Delete** (`deleteWebhook`) | `DELETE /api/v1/public/webhooks/{webhookId}` | Remove a configured outbound webhook (`Webhook ID`). |
80
+
81
+ ### 2. Le Scribe Audio Trigger (`leScribeAudioTrigger`)
82
+
83
+ Webhook trigger node that starts an n8n workflow automatically whenever a transcription finishes.
84
+
85
+ - **Events** (`events`, required, multi-select):
86
+ - `transcription.completed` *(default)* — fired when a transcription and optional summary are ready for export.
87
+ - `transcription.failed` — fired if processing fails.
88
+ - `webhook.test` — fired when testing a webhook.
89
+ - **Verify HMAC-SHA256 Signature** (`verifySignature`, boolean, default `true`):
90
+ - Validates the `X-LeScribe-Signature` header (`t=<unix_timestamp>,v1=<hex_hmac_sha256>`) using the secret returned on registration, with a 300-second replay-protection window.
91
+ - **Automatic Webhook Lifecycle**:
92
+ - Activating the workflow calls `POST /api/v1/public/webhooks` with n8n's webhook URL and stores the returned `webhookId` and signing `secret` in workflow static data.
93
+ - Deactivating the workflow automatically calls `DELETE /api/v1/public/webhooks/{webhookId}` to clean up the registration.
94
+
95
+ ---
96
+
97
+ ## Usage Example & Setting Up the Trigger
98
+
99
+ Because long recordings (1 to 10 hours) are processed asynchronously, the recommended pattern uses **two parts** — shipped ready to import in [`workflows/1-drive-audio-to-word-summary.json`](./workflows/1-drive-audio-to-word-summary.json):
100
+
101
+ ### Step 1: Submit Audio Files for Transcription
102
+
103
+ 1. Add a **Google Drive Trigger** (`File Created` in a watched folder) followed by a **Google Drive → Download** node (outputs binary property `data`).
104
+ 2. Add a **Le Scribe Audio** node and select your **Le Scribe Audio API** credential:
105
+ - **Resource**: `Transcription`
106
+ - **Operation**: `Submit Binary File`
107
+ - **Binary Property Name**: `data`
108
+ - **Verbatim Mode**: `Clean (Edited)`
109
+ - **Generate Executive & Chrono-Thematic Summary**: `true`
110
+ 3. When a new audio/video file arrives, the node uploads it to Le Scribe Audio and immediately returns a JSON payload containing `file_id` and `status: "queued"`.
111
+
112
+ ### Step 2: Configure the Le Scribe Audio Trigger & Export the `.docx`
113
+
114
+ 1. In the same workflow (or a dedicated completion workflow), add a **Le Scribe Audio Trigger** node:
115
+ - **Credential**: select your **Le Scribe Audio API** credential.
116
+ - **Events**: keep `Transcription Completed` (`transcription.completed`).
117
+ - **Verify HMAC-SHA256 Signature**: keep `true` (recommended).
118
+ 2. Connect the trigger to a **Le Scribe Audio** node:
119
+ - **Resource**: `Transcription`
120
+ - **Operation**: `Export`
121
+ - **File ID**: `={{ $json.data.file_id }}`
122
+ - **Export Format**: `Word (.docx)`
123
+ 3. Optionally connect a destination node (Google Drive Upload, Nextcloud, Email, or Slack) to deliver the exported `.docx` binary file.
124
+ 4. **Activate the workflow** (toggle **Active** ON in n8n). Your n8n instance must be reachable over HTTPS (`WEBHOOK_URL` configured on self-hosted n8n). Upon activation, the trigger automatically registers its webhook with Le Scribe Audio and verifies every incoming event's HMAC-SHA256 signature.
125
+
126
+ ---
127
+
128
+ ## Ready-to-Import Workflow Templates (`workflows/`)
129
+
130
+ Import any JSON file below via **Workflows → Import from File** in n8n:
131
+
132
+ 1. `workflows/1-drive-audio-to-word-summary.json` — Watches a Google Drive folder, uploads new recordings to Le Scribe Audio (`submitFile` with executive + chrono-thematic summary), listens with `Le Scribe Audio Trigger`, and exports the modifiable `.docx` Word file.
133
+ 2. `workflows/2-mairie-conseil-rgaa-subtitles.json` — Submits a municipal council video URL (`submitUrl`) and exports RGAA 4.1 `.VTT` subtitles alongside the `.docx` minutes draft on completion.
134
+ 3. `workflows/3-nextcloud-entretien-shs-iramuteq.json` — Submits qualitative research interviews in `Full Verbatim` mode and exports structured `.JSON` segments for downstream analysis.
135
+
136
+ ---
137
+
138
+ ## Compatibility & Resources
139
+
140
+ - **Compatibility**: Tested with n8n v1.x+ (`n8nNodesApiVersion: 1`, Node.js >= 18).
141
+ - **API & MCP Integration Hub**: https://lescribeaudio.com/integrations-mcp
142
+ - **OpenAPI 3.1 Specification**: https://lescribeaudio.com/docs/openapi-public-v1.json
143
+ - **RGPD & Security Overview**: https://lescribeaudio.com/securite-rgpd
144
+ - **License**: MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-lescribeaudio",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Official n8n community node for Le Scribe Audio Public REST API & HMAC-SHA256 Webhooks (French 2-pass AI audio/video transcription to Word .docx, SRT, VTT, JSON & executive/chrono-thematic summary).",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",
@@ -22,10 +22,10 @@
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",
25
- "url": "git+https://github.com/zoulouzaza76/n8n-nodes-lescribeaudio.git"
25
+ "url": "git+https://github.com/lescribeaudio/n8n-nodes-lescribeaudio.git"
26
26
  },
27
27
  "bugs": {
28
- "url": "https://github.com/zoulouzaza76/n8n-nodes-lescribeaudio/issues"
28
+ "url": "https://github.com/lescribeaudio/n8n-nodes-lescribeaudio/issues"
29
29
  },
30
30
  "main": "dist/index.js",
31
31
  "scripts": {