Sticker Random
Retrieves a random sticker from Giphy's sticker library. Stickers have transparent backgrounds, making them perfect for overlaying on other content. This node can return completely random stickers or filter by a specific tag.
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
This node has no required inputs. All parameters are optional and configured in the Options section.
Options
- Tag - Optional tag to filter random results. When empty, returns a completely random sticker. When specified, returns a random sticker matching that tag (e.g., "heart", "emoji", "reaction").
- Rating - Content rating filter. Options:
- g - Suitable for all audiences (default)
- pg - Parental guidance suggested
- pg-13 - Parents strongly cautioned
- r - Restricted to adults
- API Key - Your Giphy API key credential for authentication. Required for all requests.
Output
- resp - API response object containing:
data- A single random sticker object with transparent backgroundmeta- API status information
How It Works
- Retrieves authentication credentials
- Constructs API request with optional tag filter and rating
- Sends GET request to Giphy's random sticker endpoint
- Receives a single random sticker with transparent background
- Each execution returns a different random sticker
- Perfect for adding variety to automated responses
Example Usage
Completely Random Sticker
// Get any random sticker
// After execution:
let randomSticker = msg.resp.data.images.original.url;
Tag-Filtered Random Sticker
msg.Tag = "heart";
// Get random heart sticker
let heartSticker = msg.resp.data.images.downsized.url;
Random Reaction Sticker
msg.Tag = "thumbs up";
msg.Rating = "g";
// Get family-friendly random thumbs up sticker
Daily Random Sticker
// Scheduled automation for daily sticker
msg.Tag = "good morning";
// Send random good morning sticker in newsletter
Surprise Sticker Feature
// "Surprise me" button in chat
msg.Tag = ""; // Completely random
// Display: msg.resp.data.images.fixed_height.url
Common Use Cases
- Random Reactions - Send random reaction stickers in automated responses
- Daily Content - Include random themed stickers in daily communications
- Gamification - Reward users with random sticker surprises
- Chat Variety - Add unpredictability to chatbot responses
- Sticker Collections - Generate diverse sticker sets
- A/B Testing - Test different stickers for engagement
- Photo Decorations - Add random decorative elements to images
Stickers vs GIFs (Random)
| Feature | Random Sticker | Random GIF |
|---|---|---|
| Background | Transparent | Opaque |
| Use Case | Overlay elements | Standalone content |
| File Size | Generally smaller | Generally larger |
| Best For | Decorations, reactions | Full visual content |
Tips
- Transparent Backgrounds - All stickers work great as overlays
- Tag for Context - Use tags when you need contextually appropriate stickers
- Multiple Attempts - Run multiple times to see variety
- Cache Prevention - Each call returns different sticker for fresh content
- Rating Filters - Always use appropriate ratings for your audience
- Size Selection - Choose appropriate image size for your use case
- Preview Option - Show preview before applying to user content
Response Structure
{
"data": {
"type": "gif",
"id": "random_sticker_id",
"url": "https://giphy.com/stickers/...",
"images": {
"original": {
"url": "https://media.giphy.com/.../giphy.gif",
"width": "480",
"height": "480",
"has_transparency": true
},
"downsized": { ... },
"fixed_height": { ... }
},
"title": "Random Sticker Title",
"rating": "g"
},
"meta": {
"status": 200,
"msg": "OK"
}
}
Note: Random endpoints return a single sticker object in data, not an array.
Best Practices
- Verify
msg.resp.dataexists before accessing properties - Test sticker transparency on various backgrounds
- Use specific tags for better contextual relevance
- Implement fallbacks for inappropriate random results
- Cache random stickers for session consistency if needed
- Choose appropriate image format for your platform
- Consider file size for mobile applications
Popular Random Sticker Tags
- Emotions: happy, love, excited, surprised
- Reactions: yes, no, ok, thumbs up, applause
- Greetings: hello, bye, thank you, welcome
- Celebrations: party, celebrate, congrats, birthday
- Symbols: heart, star, fire, sparkle
- Actions: dance, wave, hug, kiss
Integration Examples
// Random daily greeting sticker
let greetingTags = ["good morning", "hello", "welcome"];
let randomTag = greetingTags[Math.floor(Math.random() * greetingTags.length)];
msg.Tag = randomTag;
// Send as morning message sticker
// Random reward sticker
msg.Tag = "trophy";
msg.Rating = "g";
// Award random trophy sticker for achievement
// Generate sticker set
msg.stickerSet = [];
msg.Tag = "emoji";
for (let i = 0; i < 10; i++) {
// Run Random Sticker
msg.stickerSet.push(msg.resp.data.images.original.url);
}