Search Suggestions
Retrieves related search suggestions for a given term from Giphy. This node provides alternative or related search terms that can help users refine their searches or discover related content.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.
Inputs
- Term - Search term to get related suggestions for. This is a required field and cannot be empty. Example: "cat", "happy", "dance".
Options
- API Key - Your Giphy API key credential for authentication. Required for all requests.
Output
- resp - API response object containing:
data- Array of related tag suggestionsmeta- API status information
How It Works
- Validates that the term parameter is not empty
- Retrieves authentication credentials
- Queries Giphy's related tags endpoint
- Returns semantically related search terms
- Suggestions are based on Giphy's understanding of tag relationships
Example Usage
Get Related Terms
msg.Term = "cat";
// After execution:
// msg.resp.data might include: ["cats", "kitten", "kitty", "feline", "meow"]
Build Related Searches UI
msg.Term = userSearchTerm;
// After execution:
let relatedSearches = msg.resp.data.map(tag => ({
label: `Search for: ${tag.name}`,
value: tag.name
}));
displayRelatedSearches(relatedSearches);
Expand Search Options
msg.Term = "happy";
// Get variations like: "happiness", "joy", "cheerful", "excited", "smile"
// Offer as "People also searched for..."
Common Use Cases
- Search Refinement - Help users discover better search terms
- Related Content - Show "Related Searches" or "You Might Also Like"
- Search Expansion - Broaden search scope with semantically related terms
- Tag Suggestions - Suggest related tags for content tagging
- Discovery - Help users explore themes they might not have thought of
Response Structure
{
"data": [
{
"name": "cats"
},
{
"name": "kitten"
},
{
"name": "kitty"
}
],
"meta": {
"status": 200,
"msg": "OK"
}
}
Tips
- Display suggestions as clickable chips or tags below search results
- Use as "Related Searches" section in your UI
- Combine with search results for a comprehensive search experience
- Cache suggestions for popular terms to reduce API calls