Skip to content

Latest commit

 

History

History
 
 

plugin-giphy

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Plugin Giphy

A plugin for sending GIFs in response to user messages.

Overview

The Plugin Giphy enhances your agent's interactions by enabling it to respond with relevant GIFs based on user inputs. Leveraging the Giphy API, this plugin detects specific triggers in user messages and responds with appropriate GIFs to make conversations more engaging and expressive.

Installation

pnpm add @elizaos/plugin-giphy

Configuration

Set up your environment with the required Giphy API key:

Variable Name Description
GIPHY_API_KEY Giphy API key for authenticating requests

You need to obtain an API key by signing up at Giphy Developers.

Usage

import { giphyPlugin } from "@elizaos/plugin-giphy";

// Initialize the plugin
const plugin = giphyPlugin;

// Add the plugin to your agent's plugin list
const plugins = [
  giphyPlugin,
  // ... other plugins
];

// Initialize your agent with the plugins
// Example:
// const agent = new Agent({ plugins, ...otherConfig });

The plugin provides the SEND_GIF action, which automatically responds with a GIF based on the context of user messages. No additional setup is required beyond installing and configuring the plugin.

License

MIT