ask_meta_ai | R Documentation |
Searches Meta AI, which provides general-purpose AI assistance with a focus on conversational responses.
ask_meta_ai(query = geterrmessage(), prompt = NULL)
query |
Contents of string to send to AI Service. Default is the last error message. |
prompt |
Optional prompt prefix to add before your query to guide how the AI Service responds. If NULL, uses the service-specific default prompt option. |
The generated search URL or an empty string.
Other AI assistants:
ask_bing_copilot()
,
ask_chatgpt()
,
ask_claude()
,
ask_grok()
,
ask_mistral()
,
ask_perplexity()
# Basic query
ask_meta_ai("What are the best R packages for visualization?")
# Using a custom prompt
ask_meta_ai("How to create a heatmap in R",
prompt = "Compare ggplot2 and base R approaches:")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.