How to use ChatGPT in your automation

Currently, Axiom.ai's no-code builder features two steps for integrating AI into your browser automations. Both steps use ChatGPT and require an API key from Open AI. The "Generate text with ChatGPT" step is used to generate a passage of text given any prompt. The next AI step, "Extract data with ChatGPT", can be used to extract data from unstructured data depending on the values set.

# How to use the "Generate text with ChatGPT"


To generate text with AI, use the step finder to search for "ChatGPT" and add the "Generate text with ChatGPT" step.

How
  1. Enter your OpenAI API key here; this can be found on your OpenAI account page (opens new window)
  2. Enter a prompt for ChatGPT to respond to. You can pass in data from other steps to use in your prompt
  3. Select the ChatGPT model you want to use

# What can the "Generate text with ChatGPT" step be used for?


This step can be used to generate passages of text depending on the prompt. The prompt can include data from Zapier, Make, or scraped data.

You could create automations that:

  1. Respond to DMs on Instagram.
  2. Generate and send emails in Gmail.
  3. Post messages in Facebook Groups.

# How to use the "Extract data with ChatGPT"


To extract data with AI, use the Step Finder to search for "ChatGPT" and add the "Extract data with ChatGPT" step.

How
  1. Enter your OpenAI API key here; this can be found on your OpenAI account page (opens new window).
  2. Insert the data you wish to extract from.
  3. Select a values template or add your own custom values.
  4. Select the ChatGPT model.

# What can the "Extract data with ChatGPT" step be used for?


This step can be used to extract precise data from unstructured data. In combination with other Axiom.ai steps like "Get data from a URL" or "Receive data from another app", you can pass data into ChatGPT, which can then pluck out the data you want.

You could create automations that:

  1. Scrape HTML from webpages and extract data
  2. Extract text from reporting sites
  3. Fetch data from Zapier and extract specific content

If you are interested in scraping data, why not try this ChatGPT web scraper template (opens new window)? To learn more, read the blog (opens new window).

# Set limits on your API key


Currently, OpenAI does not allow per user or per API key limits. One workaround is to create a dedicated account, with API key for Axiom.ai, to isolate permissions.

We recommend setting limits on total API spending, rotating API keys periodically, as well as following OpenAI's general security advice.

Read more (opens new window)