limit (optional): The maximum number of search results to return. Default is 20.
Example:
=SERP("docgpt.ai", 10)
Example for Pulling Emails from Instagram:
=SERP("site:instagram.com Yoga gmail.com", 40)
Note: This function is currently in beta. It can be called once every 20 seconds.
psychology
=PERPLEXITY(prompt)
User Pro
expand_more
The simplest function to start using PERPLEXITY (support WEB ACCESS!) in Sheets. Outputs the result in a single cell.
Arguments:
prompt (required): The instruction or text for PERPLEXITY to process.
Example:
=PERPLEXITY("write a tagline for coffee shop")
Example with Concatenation:
=PERPLEXITY("describe the product: " & A1 & " available at the price: " & B1)
Example with Multiple Concatenations:
=PERPLEXITY("Create an ad for " & A1 & " and highlight its features: " & B1 & ", " & C1)
psychology
=GEMINI(prompt)
User Pro
expand_more
The simplest function to start using GEMINI in Sheets. Outputs the result in a single cell.
Arguments:
prompt (required): The instruction or text for GEMINI to process.
Example:
=GEMINI("write a tagline for coffee shop")
psychology
=CLAUDE(prompt)
User Pro
expand_more
The simplest function to start using CLAUDE in Sheets. Outputs the result in a single cell.
Example:
=CLAUDE("write a tagline for coffee shop")
psychology
=LINKEDIN_POST(text)
Business
expand_more
This function facilitates creating a post on LinkedIn.
You can include emojis, multi-line text, and links as part of this content.
Arguments:
text (required): The text that you want
to share on LinkedIn. Can be a direct string (e.g., "Hello LinkedIn!")
or a reference to a cell (e.g., A1).
Example: Simple Text
=LINKEDIN_POST("Hello from LinkedIn!๐๐๐")
Clicking the resulting link should open a LinkedIn โShare Offsiteโ dialog,
attempting to pre-fill your text.
Example: Emojis
=LINKEDIN_POST("Check out my new product ๐")
Emojis will be URL-encoded so they should appear correctly in the share dialog.
Example: Multi-Line & Links
=LINKEDIN_POST("Join our webinar๐๐๐!\nSign up at https://example.com\nLetโs learn together!")
Use \n to create multi-line text. Links (like https://example.com)
are also preserved.
Referencing a Cell
=LINKEDIN_POST(A1)
Whatever text is in cell A1 will be passed to LinkedIn.
It can include emojis, multiple lines, or links.
Clickable Hyperlink (Optional)
=HYPERLINK(LINKEDIN_POST("Connect with me on LinkedIn!๐๐๐"), "Click to Share")
Use HYPERLINK to convert the generated URL into a more
user-friendly clickable text.
psychology
=TWITTER_POST(text)
Business
expand_more
This function facilitates creating a post on X (formerly Twitter).
It automatically handles spaces, emojis, multi-line text, and links by URL-encoding the string.
Arguments:
text (required): The text to place in your pre-filled X post.
This can be a literal string ("Hello World"), or a reference to a cell containing textโeven multi-line text.
Example: Simple Text
=TWITTER_POST("Hello World๐๐๐")
This will create a link that, when clicked, opens the X post composer with "Hello World" pre-filled.
Example: Emojis
=TWITTER_POST("Greetings from the future! ๐ค")
Emojis are automatically URL-encoded, so they appear correctly in your pre-filled post.
Example: Referencing a Cell
=TWITTER_POST(A1)
If cell A1 contains Hello from cell data!, the generated link
will pre-fill that text in X.
Example: Multi-Line Text with Emojis and Links
=TWITTER_POST("Hi everyone!\nCheck out my site: https://example.com\nHereโs a rocket: ๐")
This example demonstrates multi-line usage.
A new line is represented by \n, and the text includes a link and an emoji.
All special characters are properly encoded, ensuring the URL is valid.
Optional: Creating a Clickable Link with HYPERLINK
=HYPERLINK(TWITTER_POST(A1), "Click to Post!")
This wraps the URL in a clickable link titled Click to Post!, so people can just click
it to open X and see the pre-filled text.
work
=LINKEDIN_AUTOMATION()
NEW
expand_more
Automates various LinkedIn actions such as collecting profiles by filter from Search, Events, Sales Navigator. Sending connection requests and messages, auto-commenting, liking posts, using predefined workflows.
url (required): The URL to notify Google for indexing.
Example:
=GOOGLE_INDEXING("https://docgpt.ai/docs/")
Note: The function will notify Google of the URL's presence, but indexing status might take some time to update. Ensure your Google Search Console account is configured correctly.
Ensure your Gmail account is connected and authorized for API access.
Arguments:
recipientEmail (required): The recipient's email address.
subject (required): The subject of the email.
messageBody (required): The content of the email (can be HTML or plain text).
isHtml (optional, default = false): A boolean indicating whether the email content is HTML (true) or plain text (false).
Example (Sending Plain Text):
=SEND_EMAIL("example@example.com", "Greetings", "Hello! This is a plain text email.", false)
Example (Sending HTML):
=SEND_EMAIL("example@example.com", "Hello World!", "<b>Welcome</b> to our service!", true)
Note: This function requires OAuth authorization to send emails on behalf of the user. If authorization has not been granted, the function will return an authorization URL. Once authorized, the email will be sent via the Gmail API. Ensure your Gmail account is configured correctly.
Example (Sending HTML from a Cell):
=SEND_EMAIL(
"example@example.com",
"Hello from a Cell!",
A1,
TRUE
)
Example (Sending HTML with Emojis):
=SEND_EMAIL(
"example@example.com",
"Monthly Newsletter",
"<h1>Hello, Subscriber! ๐</h1><p>Weโre thrilled to share our latest updates with you.<br>Have a look at this exciting feature: ๐</p><a href='https://example.com'>Click here for details</a><p>Best Regards,<br><strong>The Awesome Team</strong></p>",
TRUE
)
=API("POST", "https://668e8e93bf9912d4c92eca5e.mockapi.io/test", "", "{""name"": ""dog name 1""}", "", true)
psychology
=MAILTO_LONG_TEXT(
to,
subject,
body,
[isHtml]
)
User Pro
expand_more
This function generates a mailto: link that includes the email
recipient (to), a subject, and a body
which can contain multiple lines or even HTML markup. If you specify
isHtml as TRUE, it indicates that your content
is HTML-based. However, rendering of HTML is client-dependent and not
guaranteed by the mailto: standard.
Arguments:
to (required): The email address of the recipient.
subject (required): The subject line for the email.
body (required): The main body of the email. Use \n for line breaks, or HTML tags.
isHtml (optional, boolean): Indicates if the body is HTML content (TRUE) or plain text (FALSE). Behavior depends on the email client.
Example: Plain Text
=MAILTO_LONG_TEXT(
"example@example.com",
"Hello World!",
"Line 1\\nLine 2 with a new line!",
FALSE
)
This constructs a mailto link that opens an email draft to example@example.com with the specified subject and body.
\n is replaced with a real line break.
Example: Multi-Line HTML + Emojis
=MAILTO_LONG_TEXT(
"example@example.com",
"Welcome ๐",
"<h2>Hello!</h2>\\n<p>We're excited to have you.</p>\\n<p>Check out our <a href='https://example.com'>website</a> for more info.</p>",
TRUE
)
This example uses HTML tags and emojis in the body.
Notice the \n for line breaks and escaped HTML characters
(like <, >). Some email clients may interpret
this as HTML, while others might display it as plain text.
Fetches the ranked keywords for a specified domain using the DataForSEO API. This function provides insights into the keywords for which a domain is ranking in Google search results.
Arguments:
domain (required): The domain for which you want to retrieve ranked keywords.
count (optional): The number of ranked keywords to return. Default is 100.
login (required): Your DataForSEO account login.
password (required): Your DataForSEO account password.
API Key Information:
You can obtain a free API key from DataForSEO. The free plan allows for approximately 40 queries.
Generates keyword suggestions based on a seed keyword using the DataForSEO API. This function helps you discover related keywords and phrases that are relevant to your seed keyword.
Arguments:
seedKeyword (required): The main keyword or phrase for which you want to generate suggestions.
login (required): Your DataForSEO account login.
password (required): Your DataForSEO account password.
API Key Information:
You can obtain a free API key from DataForSEO. The free plan allows for approximately 40 queries.
This function retrieves keyword suggestions based on the seed keyword you provide, helping you to identify additional relevant keywords for your SEO or marketing strategy.
Retrieves related keywords based on a given keyword using the DataForSEO API. This function helps you find keywords that are contextually related to the keyword you provide, enhancing your keyword research and SEO strategy.
Arguments:
keyword (required): The main keyword for which you want to find related keywords.
login (required): Your DataForSEO account login.
password (required): Your DataForSEO account password.
API Key Information:
You can obtain a free API key from DataForSEO. The free plan allows for approximately 40 queries.
This function helps you discover keywords related to your main keyword, aiding in comprehensive keyword research and optimization for better search engine visibility.
Generates keyword ideas based on a seed keyword using the DataForSEO API. This function helps you discover new keyword opportunities related to your seed keyword, enhancing your SEO and content strategies.
Arguments:
seedKeyword (required): The main keyword from which you want to generate keyword ideas.
login (required): Your DataForSEO account login.
password (required): Your DataForSEO account password.
API Key Information:
You can obtain a free API key from DataForSEO. The free plan allows for approximately 40 queries.
This function helps you generate a list of keyword ideas related to your seed keyword, providing valuable insights for expanding your keyword research and improving your SEO performance.
find_replace
=REPLACE_TEMPLATES(template, VAR_1, VAR_2, ...)
expand_more
Replaces templated variables in a string with values from specified cells or hardcoded strings. This function allows you to create dynamic text by replacing placeholders like {{VAR_1}}, {{VAR_2}}, etc., with corresponding values provided in the cells or directly in the function call.
Arguments:
template (required): The template string containing placeholders like {{VAR_1}}, {{VAR_2}}, etc.
VAR_1, VAR_2, ... (required): The values that will replace the corresponding placeholders in the template. The first value replaces {{VAR_1}}, the second value replaces {{VAR_2}}, and so on.
Example 1: Using Cell References
=REPLACE_TEMPLATES(A1, B1, C1, D1)
Where:
A1: Contains the template string, e.g., "Buy a {{VAR_1}} for {{VAR_2}} at {{VAR_3}}"
B1: Contains the value for {{VAR_1}}, e.g., "Laptop"
C1: Contains the value for {{VAR_2}}, e.g., "$999"
D1: Contains the value for {{VAR_3}}, e.g., "Amazon"
Result: The function will return "Buy a Laptop for $999 at Amazon".
Example 2: Using Hardcoded Strings
=REPLACE_TEMPLATES("Get your {{VAR_1}} for just {{VAR_2}} from {{VAR_3}}", "Smartphone", "$699", "Best Buy")
Result: The function will return "Get your Smartphone for just $699 from Best Buy".
smart_toy
=GEMINI_CUSTOM(apiKey, model, prompt)
User Pro
expand_more
The custom GEMINI function allows you to use the GEMINI API in Google Sheets, with support for multiple models. Outputs the result in a single cell.
gemini-2.0-flash-exp: Next generation features, speed, and multimodal generation for a diverse variety of tasks
gemini-1.5-flash: Fast and versatile performance across a diverse variety of tasks
gemini-1.5-flash-8b: High volume and lower intelligence tasks
gemini-1.5-pro: Complex reasoning tasks requiring more intelligence
text-embedding-004: Measuring the relatedness of text strings
aqa: Providing source-grounded answers to questions
Example 1:
=GEMINI_CUSTOM("your-api-key", "gemini-2.0-flash-exp", "Describe the benefits of AI." & " " & "Focus on healthcare applications.")
Example 2:
=GEMINI_CUSTOM("your-api-key", "gemini-1.5-flash", "Describe the benefits of AI.", "Focus on healthcare applications.")
Example 3:
=GEMINI_CUSTOM("your-api-key", "gemini-1.5-flash-8b", "Explain the concept of quantum computing." & " " & "Provide a high-level overview.")
Example 4:
=GEMINI_CUSTOM("your-api-key", "text-embedding-004", "How does a neural network work?", "")
auto_awesome
=MISTRAL(prompt)
User Pro
expand_more
The simplest function to start using MISTRAL in Sheets. Outputs the result in a single cell.
Example:
=MISTRAL("write a tagline for coffee shop")
router
=OPEN_ROUTER(model, apikey, prompt)
User Pro
expand_more
The custom function to call OpenRouter API in Sheets. Outputs the result in a single cell.
Example:
=OPEN_ROUTER("openai/gpt-3.5-turbo", "your_openrouter_api_key", "What is the meaning of life?")
brush
=GPT_CREATE_IMAGE(image description, width x height)
User Pro
expand_more
Creating images from scratch based on a text prompt DALLE 3
Example - get url to the created image:
=GPT_CREATE_IMAGE("bananas", "1024x1024")
Example - get url and display the created image:
=IMAGE(GPT_CREATE_IMAGE("bananas", "1024x1024"))
visibility
=GPT_VISION(url, prompt)
User Pro
expand_more
GPT-4 Turbo with Vision allows the model to take in images and answer questions about them.
Example 1:
=GPT_VISION("https://static.nike.com/a/images/t_PDP_1728_v1/f_auto,q_auto:eco/b7d9211c-26e7-431a-ac24-b0540fb3c00f/air-force-1-07-mens-shoes-jBrhbr.png", "Write a short description for this product")
Example 2:
=GPT_VISION(A1, A2)
language
=WEB_URL(url)
expand_more
Fetches the content of a URL, removing all css, script, SVG elements
Example:
=WEB_URL("https://docgpt.ai")
title
=WEB_TITLE(url)
expand_more
Fetches the meta title for a given URL
Example:
=WEB_TITLE("https://docgpt.ai")
description
=WEB_DESCRIPTION(url)
expand_more
Fetches the meta description for a given URL
Example:
=WEB_DESCRIPTION("https://docgpt.ai")
description
=WEB_H1(url)
expand_more
Fetches the content of the first H1 tag for a given URL
Example:
=WEB_H1("https://docgpt.ai")
description
=WEB_H2(url)
expand_more
Fetches the content of the first H2 tag for a given URL
Example:
=WEB_H2("https://docgpt.ai")
table_chart
=WEB_URLS_DATA(A44:A47)
expand_more
Fetches page data for a list of URLs and puts it into an organized table
This function calls the OpenAI GPT API to generate text completions directly in Google Sheets. You can customize the model, max_tokens, temperature, and top_p, or use the default values.
Arguments:
prompt (required): The input prompt to generate a response from GPT.
apiKey (required): Your OpenAI API key.
model (optional): The GPT model to use, default is 'gpt-4-turbo'.
max_tokens (optional): The maximum number of tokens in the response, default is 2000.
temperature (optional): Controls the randomness of the response, default is 0.7.
top_p (optional): Controls the diversity of the response, default is 0.9.
Basic Example:
=GPT_CUSTOM("Write a blog post intro about AI.", "your-api-key")
Example with specific parameters:
=GPT_CUSTOM("Describe the benefits of AI.", "your-api-key", "gpt-3.5-turbo", 1500, 0.6, 0.8)
Example with concatenation:
=GPT_CUSTOM("Describe the product: " & A1 & " available at the price: " & B1, "your-api-key")
Example with multiple concatenations:
=GPT_CUSTOM("Create an ad for " & A1 & " and highlight its features: " & B1 & ", " & C1, "your-api-key")
Example with advanced concatenation (product description):
=GPT_CUSTOM("Create a detailed description for " & A1 & " available in the following sizes: " & B1 & " and priced at: " & C1 & ". The color options are: " & D1, "your-api-key")
Example with advanced concatenation (blog post):
=GPT_CUSTOM("Write a blog post titled: " & A1 & ". Include the following sections: " & B1 & ". End with a call to action focused on: " & C1, "your-api-key")
local_offer
=GPT_TAG(text, [tags])
expand_more
Applies user-defined tags to a given text
Example with custom tags:
=GPT_TAG("I love chocolate", "food, positive, negative")
Example with default tags:
=GPT_TAG("I love chocolate")
data_object
=GPT_EXTRACT(text, to_extract)
expand_more
Extracts data (like email addresses or company names) from a text. Outputs as comma-separated values.
Example:
=GPT_EXTRACT("I worked 12 years at Amazon.com at Apple", "companies")
translate
=GPT_TRANSLATE(text, target, [source])
expand_more
Translates input text into another language using GPT.
Example with target language:
=GPT_TRANSLATE("I love ice cream", "spanish")
Example with source and target:
=GPT_TRANSLATE("I love ice cream", "spanish", "english")
summarize
=GPT_SUMMARIZE(text, [format])
expand_more
Summarizes the input text using GPT and returns the summary.
Default format example:
=GPT_SUMMARIZE("This is a long text. It contains a lot of information. We need to summarize it.")
Custom format example:
=GPT_SUMMARIZE("This is a long text. It contains a lot of information. We need to summarize it.", "two sentences")