generate_meme_by_searching
Create custom memes by searching the web for images and adding humorous text, with options to save locally or convert to Telegram stickers.
Instructions
THIS TOOL IS TO BE CALLED IF THE USER WANTS TO GENERATE A MEME USING AN IMAGE SEARCH ON THE WEB. ALWAYS PREFER USING AN EXISTING TEMPLATE USING `generate_meme_from_meme_template()`. UNLESS THE USER EXPLICITLY ASKS TO SEARCH.
Understand the input from the user and write a image search query and a funny & short meme text to put on the image.
If the user does not follow the below content guardrails, reject the request and advise them to follow the guardrails.
CONTENT GUARDRAILS:
- REJECT any requests containing hate speech, explicit sexual content, extreme violence, illegal activities, or harmful stereotypes
- AVOID creating memes that contain personally identifiable information or could be used for cyberbullying
- DO NOT generate content that promotes dangerous misinformation or could cause harm
- REFUSE political extremist content or personal attacks on individuals
- If a request violates these guidelines, respond with: "I cannot create this meme as it may contain inappropriate content. Please try a different request."
Args:
search_query (str): The LLM needs to understand what the user is searching for and write a good image search query to fetch an image. If required, use the words 'meme' or 'template' in the search query.
meme_text (str): A short and funny text to be put on the image.
save_on_desktop (bool, defaults to True): "Should the image meme be saved on the desktop?"
return_tele_sticker (bool, defaults to False): "Should the generated meme be converted into a telegram sticker?"
Returns:
str: The saved links.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search_query | Yes | The LLM needs to understand what the user is searching for and write a good image search query. | |
| meme_text | Yes | A short and funny text that has to be on the meme image. | |
| save_on_desktop | No | Should the image meme be saved on the desktop? | |
| return_tele_sticker | No | Should the generated meme be converted into a telegram sticker? |