10 Ways to Use OpenAI Completions in Spreadsheet.com

Introduction to OpenAI and GPT

OpenAI is an artificial intelligence (AI) research laboratory dedicated to AI technology. Most famously, OpenAI has developed the ChatGPT AI chatbot on top of its OpenAI API to automatically generate human-like text and image content in response to user input.

The OpenAI API is a set of tools and services that allow developers to build applications powered by AI. It provides access to a range of AI services, including natural language processing, computer vision, and more.

OpenAI in Spreadsheet.com

With our native OpenAI integration, you have fast and easy access to the power of OpenAI’s models inside your spreadsheets. This allows you to write simple formulas to accomplish a virtually endless number of possible tasks.

Spreadsheet.com supports the OpenAI method Completion, which returns information when given a prompt. The completion method can be accessed via the OPENAI_COMPLETE integration function.

In this Guide, we’ll take a look at ten different ways you can use OpenAI completions in your Spreadsheet.com workbooks. See our companion guide “5 Tips & Tricks for Working with OpenAI in Spreadsheet.com”.

Getting Started: How to Use OpenAI Integration Functions

OpenAI integration can be accessed through the integration function OPENAI_COMPLETE. Integration functions, like all other functions, can be used in any workbook cell or with the Column formula data type.

OPENAI_COMPLETE has one required argument – a prompt, or the instruction you give OpenAI – with additional optional arguments. When you use the function in a workbook for the first time, you’ll be prompted to connect your workbook with your OpenAI account.

1. Write Social Media Posts

Spin up a social media content pipeline in no time by letting OpenAI write your posts for you. Give OpenAI a topic – and even a tone to write with – and have it generate a post in seconds.

=OPENAI_COMPLETE(CONCATENATE("Write a ",B5," post about ",A5," with a",C5," tone."))

In the example above, note how we’re using the CONCATENATE function to create a complex request with multiple cell references in a single prompt argument.

2. Create Product Descriptions

Give OpenAI a product name and some keywords, and ask it to write a product description for you.

=OPENAI_COMPLETE(CONCATENATE("Write an SEO-optimized product description for a ",A5," using these keywords: ",B5))

Once you generate a list of product descriptions, try translating them into another language or optimizing their SEO performance with another OPENAI_COMPLETE function.

3. Write Job Postings

Use OpenAI to take a list of job titles and keywords or requirements, and write ready-to-post job descriptions.

=OPENAI_COMPLETE(CONCATENATE("Write a short job description for a ",A5," position using these keywords: ",B5))

Need to manage a hiring pipeline end-to-end? Take a look at Spreadsheet.com’s Human Resources templates to get a head start on applicant tracking, hiring budgets, interview management, and more.

4. Generate SEO-Optimized Keywords

Give your web presence a boost by asking OpenAI to generate SEO-optimized keywords for topics in your content marketing pipeline. List a topic and ask OpenAI to return a list of keywords to target in titles and meta text.

=OPENAI_COMPLETE(CONCATENATE("Generate a list of ",B5," SEO-optimized keywords about ",A5," as comma-separated-values."))

Try combining OpenAI integration functions with a Spreadsheet.com template like a Content Calendar, Blog Editorial Calendar, or Content Brief organizer to further improve your content marketing strategy.

5. Get Historical Stock Price Data

If you’re using Spreadsheet.com to manage and identify investment opportunities, you can use OpenAI to quickly gather historical stock price data. Give OpenAI a ticker symbol and a date, and ask it to return the close price from that date.

=OPENAI_COMPLETE(CONCATENATE("Return the close price of ",A5," on ",B5," as a single dollar value."))

Try adjusting your OpenAI request to get more information about a stock, like the market cap, year-over-year change, historical highs and lows, current price, and more.

Note: OpenAI does not always return accurate financial information. We do not recommend relying on OpenAI for investment decisions or financial advice.

6. Create Personalized Customer Emails

Use OpenAI to write personalized emails to customers. Include information like the customer’s name and the product they purchased in your OpenAI query. You can even ask OpenAI to include personal anecdotes, like a fun fact about the city that the customer lives in.

=OPENAI_COMPLETE(CONCATENATE("Write a personal thank you email to ",A5," for their purchase of a ",B5," with a fun introduction about the city that they live in: ",C5))

Adjust your OpenAI prompt until the function returns an email that you’re satisfied with. Try specifying a tone to write with or asking OpenAI to include different types of personal anecdotes.

7. Correct Misspelled Text

If you’re working with long text passages – or just a lot of rows of text – it can be tedious to comb through them and identify and correct misspelled words. OpenAI can complete this task with a simple request to correct textual errors.

=OPENAI_COMPLETE(CONCATENATE("Correct the errors in this passage: ",C5))

Try using OpenAI to correct other mistakes like improper capitalization and bad grammar.

8. Clean and Extract Information from Messy Data

Data doesn’t always start with carefully formatted and standardized entries, especially if you’re working with data that’s been submitted from external sources through a Form View or a third-party import. With OpenAI, you can automatically format information in a standardized way, as well as extract specific pieces of information from it.

=OPENAI_COMPLETE(CONCATENATE("Return ",A5," as a properly formatted comma-separated address with proper capitalization and an abbreviation for the state name.")) and =OPENAI_COMPLETE(CONCATENATE("Return only the city name from ",B5))

In Column A, we have a list of addresses that are all formatted differently. In Column B, we’re using the OPENAI_COMPLETE function to standardize the appearance of all of the addresses. Then, in Columns C through E, we’re using the OPENAI_COMPLETE function to extract specific pieces of information – cities, states, and zip codes – from each address.

9. Translate Text into Other Languages

If you’re creating open job listings for bilingual positions or localizing an e-commerce business in multiple countries, you probably need to translate text into different languages. Instead of copying and pasting each passage into a translation service, use OpenAI to translate text without leaving your Spreadsheet.com workbooks.

=OPENAI_COMPLETE(CONCATENATE("Translate (",B5,") into Spanish."))

Use the OPENAI_COMPLETE function to reference a cell with text and instruct OpenAI to translate it to any other language.

10. Write a Story

With just a few inputs and an OpenAI function, you can write an entire story in seconds. Give OpenAI details like a genre, character, and character traits, and let it generate a creative story for you.

=OPENAI_COMPLETE(CONCATENATE("Write a ",C3," story about a ",C4," from ",C5," who likes ",C6," and hates ",C7," and has these superpowers: ",C8," ",C9," ",C10),500,0,.9)

Take a look at the OPENAI_COMPLETE function documentation to learn more about the additional parameters like temperature and max tokens that are used in the example above.

Learn More about Working with OpenAI

With Spreadsheet.com’s OpenAI integration functions, the ways in which you can use OpenAI to enhance your workbooks are endless. Take a closer look at how to work with OpenAI in our Help Center, or visit the documentation for the OPENAI_COMPLETE function.

Sign up — it's free