This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # n8n + Postgres Agent Skills — companion code | |
| This Gist holds the full code referenced from the forum post about implementing Anthropic-style Agent Skills inside n8n with progressive disclosure and a dedicated Postgres container. | |
| The post itself stays prose-only to keep it readable (and to keep CDN-level firewalls happy with long blocks of DDL). All the actual code is here. | |
| --- | |
| ## 1. Postgres schema |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Plugin Name: TP – Track Email Link Clicks (FluentCRM) | |
| */ | |
| add_action('fluent_crm/email_url_clicked', function ($campaignEmail, $urlObject) { | |
| // Prendi i riferimenti del contatto | |
| $subscriber_id = (int)($campaignEmail->subscriber_id ?? 0); | |
| $email = $campaignEmail->email ?? ''; |