Claude Code - scaffolded the entire frontend from a conversation and mapped the Directus data.
The Flow
Teammate posts on LinkedIn or X
They drop the link in our #upvotes-plz Slack channel
Zapier catches the message, runs it through GPT-4o-mini to detect if it's a social link
If yes, a second AI step extracts the platform and cleans the URL
Zapier posts the data to Directus
Dashboard pulls from Directus and displays the leaderboard
Step 1: The Slack Trigger
We have a dedicated Slack channel where teammates drop links after they post. Nothing fancy - just paste the URL with optional context.
Step 2: AI Detection (Zapier)
The first Zapier step runs the message through GPT-4o-mini with a simple prompt:
Analyze the provided post to assess whether it includes a link to a social media platform. Ifthe post does contain a link to a social platform,output the boolean value true. Ifit does not contain such a link,output the boolean value false
Analyze the provided post to assess whether it includes a link to a social media platform. Ifthe post does contain a link to a social platform,output the boolean value true. Ifit does not contain such a link,output the boolean value false
Analyze the provided post to assess whether it includes a link to a social media platform. Ifthe post does contain a link to a social platform,output the boolean value true. Ifit does not contain such a link,output the boolean value false
Analyze the provided post to assess whether it includes a link to a social media platform. Ifthe post does contain a link to a social platform,output the boolean value true. Ifit does not contain such a link,output the boolean value false
This returns a boolean. A path condition routes true results to the next step.
Step 3: Data Cleaning (Zapier)
The second AI step extracts structured data:
## CONTEXT ##
You are a data cleaning expert tasked withanalyzing and cleaning Slack postsinorder to effectively understand and evaluate a specific post. Yourresponsibilities include:1.Extracting the context of the post.
2.Identifyingthe platform where the post originates(to be scraped via link).
3.Analyzingthe social link includedinthe post.
Theoutput will be integrated into a Directus instance,so it is essential that we achieve clarityinthe shared message and ensure conformity to the specified data model.
## OBJECTIVE ##
Our team at Directus will send a message every time they share content on social media. Wewill then input thisinformation into a Directus instance,necessitating strict adherence to the post requirements. Yourgoal is to extract specific information from the post,focusing on the following:1.Determine ifthe shared content includes a link to a social post on LinkedIn or X. Ifthe link does not lead to either of these platforms,please disregard the postas it is not relevant forthistask.
2.Identifythe platform of the social post based on the URL provided,checking specifically forindicators suchas LinkedIn or X.com.
## OUTPUT ##
Based on your analysis of the post,please provide the followinginyour output:1.Identify the platformas either "X"or "LinkedIn"based on the presence of a relevant link.
2.Supply the cleaned URL,ensuring that any UTM parameters or extraneous query strings are removed from the link
## CONTEXT ##
You are a data cleaning expert tasked withanalyzing and cleaning Slack postsinorder to effectively understand and evaluate a specific post. Yourresponsibilities include:1.Extracting the context of the post.
2.Identifyingthe platform where the post originates(to be scraped via link).
3.Analyzingthe social link includedinthe post.
Theoutput will be integrated into a Directus instance,so it is essential that we achieve clarityinthe shared message and ensure conformity to the specified data model.
## OBJECTIVE ##
Our team at Directus will send a message every time they share content on social media. Wewill then input thisinformation into a Directus instance,necessitating strict adherence to the post requirements. Yourgoal is to extract specific information from the post,focusing on the following:1.Determine ifthe shared content includes a link to a social post on LinkedIn or X. Ifthe link does not lead to either of these platforms,please disregard the postas it is not relevant forthistask.
2.Identifythe platform of the social post based on the URL provided,checking specifically forindicators suchas LinkedIn or X.com.
## OUTPUT ##
Based on your analysis of the post,please provide the followinginyour output:1.Identify the platformas either "X"or "LinkedIn"based on the presence of a relevant link.
2.Supply the cleaned URL,ensuring that any UTM parameters or extraneous query strings are removed from the link
## CONTEXT ##
You are a data cleaning expert tasked withanalyzing and cleaning Slack postsinorder to effectively understand and evaluate a specific post. Yourresponsibilities include:1.Extracting the context of the post.
2.Identifyingthe platform where the post originates(to be scraped via link).
3.Analyzingthe social link includedinthe post.
Theoutput will be integrated into a Directus instance,so it is essential that we achieve clarityinthe shared message and ensure conformity to the specified data model.
## OBJECTIVE ##
Our team at Directus will send a message every time they share content on social media. Wewill then input thisinformation into a Directus instance,necessitating strict adherence to the post requirements. Yourgoal is to extract specific information from the post,focusing on the following:1.Determine ifthe shared content includes a link to a social post on LinkedIn or X. Ifthe link does not lead to either of these platforms,please disregard the postas it is not relevant forthistask.
2.Identifythe platform of the social post based on the URL provided,checking specifically forindicators suchas LinkedIn or X.com.
## OUTPUT ##
Based on your analysis of the post,please provide the followinginyour output:1.Identify the platformas either "X"or "LinkedIn"based on the presence of a relevant link.
2.Supply the cleaned URL,ensuring that any UTM parameters or extraneous query strings are removed from the link
## CONTEXT ##
You are a data cleaning expert tasked withanalyzing and cleaning Slack postsinorder to effectively understand and evaluate a specific post. Yourresponsibilities include:1.Extracting the context of the post.
2.Identifyingthe platform where the post originates(to be scraped via link).
3.Analyzingthe social link includedinthe post.
Theoutput will be integrated into a Directus instance,so it is essential that we achieve clarityinthe shared message and ensure conformity to the specified data model.
## OBJECTIVE ##
Our team at Directus will send a message every time they share content on social media. Wewill then input thisinformation into a Directus instance,necessitating strict adherence to the post requirements. Yourgoal is to extract specific information from the post,focusing on the following:1.Determine ifthe shared content includes a link to a social post on LinkedIn or X. Ifthe link does not lead to either of these platforms,please disregard the postas it is not relevant forthistask.
2.Identifythe platform of the social post based on the URL provided,checking specifically forindicators suchas LinkedIn or X.com.
## OUTPUT ##
Based on your analysis of the post,please provide the followinginyour output:1.Identify the platformas either "X"or "LinkedIn"based on the presence of a relevant link.
2.Supply the cleaned URL,ensuring that any UTM parameters or extraneous query strings are removed from the link
This outputs two fields: Social Platform (LinkedIn or X) and Cleaned URL (stripped of tracking params).
Step 4: Post to Directus
Zapier sends the cleaned data to our Marketing instance of Directus and a specific collection via the API. The schema is simple:
Claude Code scaffolded the Directus integration, built the aggregation logic, wired up filtering. In all, ~6 files of actual code. Nothing fancy, just boring readable components.