Skip to main content

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 background
    • meta - API status information

How It Works

  1. Retrieves authentication credentials
  2. Constructs API request with optional tag filter and rating
  3. Sends GET request to Giphy's random sticker endpoint
  4. Receives a single random sticker with transparent background
  5. Each execution returns a different random sticker
  6. 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

  1. Random Reactions - Send random reaction stickers in automated responses
  2. Daily Content - Include random themed stickers in daily communications
  3. Gamification - Reward users with random sticker surprises
  4. Chat Variety - Add unpredictability to chatbot responses
  5. Sticker Collections - Generate diverse sticker sets
  6. A/B Testing - Test different stickers for engagement
  7. Photo Decorations - Add random decorative elements to images

Stickers vs GIFs (Random)

FeatureRandom StickerRandom GIF
BackgroundTransparentOpaque
Use CaseOverlay elementsStandalone content
File SizeGenerally smallerGenerally larger
Best ForDecorations, reactionsFull 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

  1. Verify msg.resp.data exists before accessing properties
  2. Test sticker transparency on various backgrounds
  3. Use specific tags for better contextual relevance
  4. Implement fallbacks for inappropriate random results
  5. Cache random stickers for session consistency if needed
  6. Choose appropriate image format for your platform
  7. Consider file size for mobile applications
  • 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);
}