🎅🏼 Get -80% ->
80XMAS
Hours
Minutes
Seconds

Description

Overview

This country code lookup automation workflow enables real-time retrieval of country information via a no-code integration pipeline. Designed for developers and system integrators, it resolves country details including name, phone calling code, and flag emoji from a standardized country code input. The workflow is initiated by an HTTP webhook trigger that accepts a query parameter representing the country code.

Key Benefits

  • Automates country data retrieval using a GraphQL query to a public API for reliable information.
  • Processes and formats country details into a concise string for easy consumption downstream.
  • Supports dynamic input via HTTP webhook, enabling flexible integration with external systems.
  • Reduces manual lookup steps by delivering structured country info in a single response cycle.

Product Overview

This country code lookup automation pipeline begins with an HTTP POST request to a webhook node configured to accept a query parameter named code. Upon receiving a request, the workflow triggers a GraphQL node that queries the public endpoint https://countries.trevorblades.com/ using the uppercase country code provided. The GraphQL query requests the country’s name, phone calling code, and emoji flag symbol. The response is returned as a raw JSON string.

Next, a Function node parses this JSON string to extract the nested country object, replacing the raw response with structured data. Subsequently, a Set node formats this data into a string that states the country’s name, emoji, and phone code in a human-readable sentence. The workflow returns this formatted string as a JSON object in the HTTP response, ensuring synchronous delivery. The workflow does not persist any data and relies on the availability of the external GraphQL API for information retrieval.

Features and Outcomes

Core Automation

This no-code integration pipeline accepts a country code input, applies a GraphQL query for data retrieval, and formats the results into a structured string. The Function node ensures parsed data integrity before the final formatted output is generated.

  • Single-pass evaluation from input to formatted output without intermediate storage.
  • Deterministic data extraction using JSON parsing for consistent output structure.
  • Synchronous response model ensures immediate delivery upon query completion.

Integrations and Intake

The orchestration pipeline integrates with a public GraphQL API using an HTTP GET request authenticated implicitly by endpoint availability. The webhook node listens for HTTP requests carrying a country code as a query parameter, which serves as the dynamic input for the GraphQL query.

  • Webhook node for HTTP intake and event-driven trigger based on query parameter.
  • GraphQL node executing a country data query against a public API endpoint.
  • Function node for JSON parsing and data extraction to prepare structured output.

Outputs and Consumption

The workflow outputs a JSON object containing a single string field that concatenates country name, emoji, and phone code. This synchronous response is designed for immediate consumption by clients or downstream systems requiring country metadata.

  • Output format: JSON with a single data string field.
  • Response is synchronous, returning data immediately after processing.
  • Output includes country name, flag emoji, and phone calling code in natural language.

Workflow — End-to-End Execution

Step 1: Trigger

The workflow is triggered by an HTTP webhook node configured to listen for incoming requests at the /webhook path. It requires a query parameter code containing a two-letter country code, which initiates the downstream query process.

Step 2: Processing

The GraphQL node performs a GET request querying the public countries API, dynamically inserting the uppercase country code from the webhook. The response is returned as a raw JSON string without schema validation beyond the API’s native response format.

Step 3: Analysis

A Function node parses the raw JSON string and extracts the nested country object, replacing the raw data with structured JSON containing the country’s name, phone code, and emoji. This ensures downstream nodes operate on clean data.

Step 4: Delivery

The Set node formats the extracted data into a human-readable string stating the country name, emoji, and phone code. The webhook node returns this string as a JSON response in the field data, completing the synchronous request-response cycle.

Use Cases

Scenario 1

When building a global directory application, developers need to display country metadata based on user input codes. This workflow automates the retrieval of country name, flag emoji, and phone code, returning a formatted response in one request cycle, eliminating manual API querying.

Scenario 2

Customer support systems require quick verification of country codes to route calls correctly. This orchestration pipeline performs instant country code lookup and returns call-related metadata, enabling automated routing decisions without manual reference checks.

Scenario 3

Localization engines need to enrich user profiles with country-specific details. By integrating this workflow, profiles can be automatically appended with country name, emoji, and phone code from a simple country code input, ensuring consistency and reducing manual enrichment tasks.

How to use

To deploy this country code lookup automation workflow in n8n, import the workflow JSON and configure the webhook node for your desired endpoint path. No additional credentials are required as the GraphQL API is publicly accessible. After activation, send HTTP requests with the code query parameter set to a valid two-letter country code. The workflow will synchronously return a JSON response containing the country’s name, flag emoji, and phone code formatted in a single string.

Comparison — Manual Process vs. Automation Workflow

AttributeManual/AlternativeThis Workflow
Steps requiredMultiple manual lookups and data formatting steps.Single automated workflow from input to formatted output.
ConsistencyVariation due to manual transcription errors.Deterministic and consistent JSON parsing and output formatting.
ScalabilityLimited by manual throughput and human capacity.Scales automatically with HTTP request volume.
MaintenanceRequires frequent updates to reference data and format.Minimal; relies on external API availability and node configuration.

Technical Specifications

Environmentn8n workflow automation platform
Tools / APIsWebhook node, GraphQL node, Function node, Set node; Public GraphQL API (countries.trevorblades.com)
Execution ModelSynchronous HTTP request-response via webhook trigger
Input FormatsHTTP query parameter: ISO 3166-1 alpha-2 country code
Output FormatsJSON object with formatted string in data field
Data HandlingTransient in-memory processing; no persistence
Known ConstraintsDepends on availability and response of the external public GraphQL API
CredentialsNone required for public API access

Implementation Requirements

  • n8n instance with webhook accessibility to receive HTTP requests.
  • Network access allowing outbound HTTPS GET requests to the public GraphQL API endpoint.
  • Clients must supply a valid two-letter country code as a query parameter in requests.

Configuration & Validation

  1. Deploy the workflow in n8n and activate the webhook node with a defined HTTP path.
  2. Send test HTTP requests with the code parameter set to valid ISO 3166-1 alpha-2 country codes.
  3. Verify that the JSON response contains the correctly formatted string with country name, emoji, and phone code.

Data Provenance

  • Triggered by the Webhook node receiving HTTP query parameter code.
  • Country data fetched via the GraphQL node querying https://countries.trevorblades.com/ API.
  • Data parsed and formatted through Function and Set nodes before synchronous response.

FAQ

How is the country code lookup automation workflow triggered?

The workflow is triggered by an HTTP webhook node configured to listen for requests containing the code query parameter with a two-letter country code.

Which tools or models does the orchestration pipeline use?

The pipeline uses a GraphQL node to query a public API for country data, a Function node to parse JSON, and a Set node to format output into a readable string.

What does the response look like for client consumption?

The response is a synchronous JSON object containing a single data field with a string that states the country name, flag emoji, and phone calling code.

Is any data persisted by the workflow?

No data is persisted; all processing is transient and occurs in-memory during request execution.

How are errors handled in this integration flow?

The workflow relies on n8n’s default error handling; there are no explicit retry or backoff mechanisms configured.

Conclusion

This country code lookup automation workflow provides a deterministic method to retrieve and format country metadata based on user-provided codes. It ensures consistent, synchronous delivery of country name, flag emoji, and phone calling code in a human-readable string. The workflow’s operation depends on the availability of the external public GraphQL API and requires no credentials. Its streamlined design reduces manual lookup errors and supports scalable, event-driven integration scenarios.

Additional information

Use Case

Platform

Risk Level (EU)

Tech Stack

Trigger Type

Skill Level

Data Sensitivity

Reviews

There are no reviews yet.

Be the first to review “Country Code Lookup Automation Workflow with GraphQL Tools”

Your email address will not be published. Required fields are marked *

Loading...

Vendor Information

  • Store Name: clepti
  • Vendor: clepti
  • No ratings found yet!

Product Enquiry

About the seller/store

Clepti is an automation specialist focused on dependable AI workflows and agentic systems that ship and stay online. I design end-to-end automations—intake, decision logic, approvals, execution, and audit trails—using robust building blocks: Python, REST/GraphQL APIs, event queues, vector search, and production-grade LLMs. My work centers on measurable outcomes: fewer manual touches, faster cycle times, lower error rates, and clear ROI.Typical projects include lead qualification and routing, document parsing and enrichment, multi-step data pipelines, customer support deflection with tool-using agents, and reporting that actually reconciles with source systems. I prioritize security (least privilege, logging, PII handling), testability (unit + sandbox runs), and maintainability (versioned prompts, clear configs, readable code). No inflated promises—just stable automation that replaces repetitive work.If you need an AI agent or workflow that integrates with your stack (CRMs, ticketing, spreadsheets, databases, or custom APIs) and runs every day without babysitting, I can help. Brief me on the problem, constraints, and success metrics; I’ll propose a straightforward plan and build something reliable.

30-Day Money-Back Guarantee

Easy refunds within 30 days of purchase – Shouldn’t you be happy with the automation/workflow you will get your money back with no questions asked.

Country Code Lookup Automation Workflow with GraphQL Tools

Automate country code lookup with this workflow using GraphQL tools to retrieve country name, phone code, and flag emoji in real time for seamless integration.

32.99 $

You May Also Like

Isometric illustration of n8n workflow automating resolution of long-unresolved Jira support issues using AI classification and sentiment analysis

AI-Driven Automation Workflow for Unresolved Jira Issues with Scheduled Triggers

Optimize issue management with this AI-driven automation workflow for unresolved Jira issues, using scheduled triggers and text classification to streamline... More

39.99 $

clepti
Diagram of n8n workflow automating AI-based categorization and sorting of Outlook emails into folders

Outlook Email Categorization Automation Workflow with AI

Automate Outlook email sorting using AI-driven categorization to efficiently organize unread and uncategorized messages into predefined folders for streamlined inbox... More

42.99 $

clepti
Isometric illustration of an n8n workflow automating API schema discovery, extraction, and generation using Google Sheets and AI

API Schema Extraction Automation Workflow with Tools and Formats

Automate discovery and extraction of API documentation using this workflow that generates structured API schemas for technical teams and analysts.

... More

42.99 $

clepti
n8n workflow diagram showing Angie AI assistant processing voice and text via Telegram with Google Calendar, Gmail, and Baserow integration

Telegram AI Assistant Workflow for Voice & Text Automation

This Telegram AI assistant workflow processes voice and text inputs, integrating calendar, email, and database data to deliver precise, context-aware... More

42.99 $

clepti
n8n workflow automates AI-powered company data enrichment from Google Sheets for sales and business development

Company Data Enrichment Automation Workflow with AI Tools

Automate company data enrichment with this workflow using AI-driven research, Google Sheets integration, and structured JSON output for reliable firmographic... More

42.99 $

clepti
n8n workflow automating podcast transcript summarization, topic extraction, Wikipedia enrichment, and email digest delivery

Podcast Digest Automation Workflow with Summarization and Enrichment

Automate podcast transcript processing with this podcast digest automation workflow, delivering concise summaries enriched with relevant topics and questions for... More

42.99 $

clepti
n8n workflow diagram showing AI-powered YouTube video transcript summarization and Telegram notification

YouTube Video Transcript Summarization Workflow Automation

This workflow automates YouTube video transcript extraction and generates structured summaries using an event-driven pipeline for efficient content analysis.

... More

42.99 $

clepti
n8n workflow automating AI-driven analysis of Google's quarterly earnings PDFs with Pinecone vector search and Google Docs report generation

Stock Earnings Report Analysis Automation Workflow with AI

Automate financial analysis of quarterly earnings PDFs using AI-driven semantic indexing and vector search to generate structured stock earnings reports.

... More

42.99 $

clepti
n8n workflow automating AI-generated children's English stories with GPT and DALL-E, posting on Telegram every 12 hours

Children’s English Storytelling Automation Workflow with GPT-3.5

Automate engaging children's English storytelling with AI-generated narratives, audio narration, and image creation delivered every 12 hours via Telegram channels.

... More

41.99 $

clepti
Diagram of n8n workflow automating AI summary insertion into WordPress posts using OpenAI, Google Sheets, and Slack

AI-Generated Summary Block Automation Workflow for WordPress

Automate AI-generated summary blocks for WordPress posts with this workflow, integrating content classification, Google Sheets logging, and Slack notifications to... More

42.99 $

clepti
n8n workflow automating AI-powered PDF data extraction and dynamic Airtable record updates via webhooks

AI-Powered PDF Data Extraction Workflow for Airtable

Automate PDF data extraction in Airtable with AI-driven dynamic prompts, enabling event-triggered updates and batch processing for efficient structured data... More

42.99 $

clepti
n8n workflow automating stock analysis with PDF ingestion, vector search, and AI-powered Q&A

Stock Q&A Workflow Automation for Financial Document Analysis

The Stock Q&A Workflow automates financial document ingestion and semantic indexing, enabling natural language queries and AI-driven stock analysis for... More

42.99 $

clepti
Get Answers & Find Flows: