How to use OpenAI to add acceptance criteria to product issues

New to Zapier? Zapier is a tool that allows you to connect apps and automate workflows without any complex coding. Sign up for free to get started.

Before you begin

Make sure you create a free OpenAI account before proceeding. Once you have set up your account, generate your API key by navigating to the settings tab.

AI_tutorial_.png

Remember to keep a copy of your API key as you will need it later when connecting your OpenAI account to Zapier.

use-openai-gpt-3-for-content-02.png

Interested in building GPT-powered apps for your clients or coworkers? Zapier's new Interfaces product makes it easy to create dynamic web pages that can trigger automated workflows.

Setting up your Jira trigger

Begin by setting up your trigger, which is the event that initiates your Zap. Select Jira as your trigger app and New Issue as your trigger event.

Jira_trigger.png

If you haven't connected your Jira account yet, you'll be prompted to do so. Click on Choose an account and either select an existing account from the dropdown menu or click + Connect to add a new account.

Jira_trigger_tutorial_image_account.png

Click Continue. Next, choose the Jira project to which you want to add acceptance criteria. Use the dropdown menu to view available projects in your connected Jira account. In this case, we have created a separate project named Feature request, which triggers the Zap whenever a new ticket is added to this project.

Jira_trigger_set_up_tutorial_image.png

Click Continue.

Now, it's time to test your trigger. Zapier will find a recently created issue in the project you selected. This will be used to set up the rest of your Zap.

If you don't have any issues yet, create a sample issue and then test your Zap.

Here's an example of a sample issue:

Jira_sample_ticket_tutorial_image.png

Click Test trigger to pull in the new issue from the chosen project. Once you confirm that the trigger is working correctly, click Continue.

Jira_test_trigger_tutorial_image.png

Setting up your OpenAI action

Now, let's set up the action that your Zap will perform once triggered. Select OpenAI as your action app and Send Prompt as your action event. Click Continue.

OpenAI_action_tutorial_trigger.png

If you haven't connected your OpenAI account yet, you'll be asked to do so. Click on Choose an account... and select an existing account from the dropdown menu or click + Connect a new account. Then, click Continue.

OpenAI_action_tutorial_account_image.png

You will then be prompted to insert your OpenAI API key, which you copied earlier. Next, you need to specify how your Zap should generate your acceptance criteria.

To include data from your Jira issues, click inside any empty field and choose an option from the Insert Data dropdown menu. You can select the AI model, prompt, temperature, and maximum length.

In the Prompt field, provide the AI with instructions to create the acceptance criteria. In this case, the prompt is: "Can you give me the acceptance criteria for the PRD for the product team for the following request—it must be very specific."

Next, we need to import the Jira issue description from the sample issue selected by the Zap.

OpenAI_prompt_tutorial_image.png

Do note that other factors such as temperature, length, sequences, and frequency penalty can be adjusted, but they are not necessary for generating acceptance criteria. You can leave these fields as they are:

OpenAI_action_prompt_adjustments_image.png

Once you have finished customizing these fields, click Continue.

Now it's time to test your action. Click either Test & Review or Test & Continue to let Zapier pull in the acceptance criteria from OpenAI based on your customization.

OpenAI_prompt_test_image.png

Once you confirm that your trigger is working correctly, click Continue.

Setting up your Jira action

Lastly, you need to set up one more action step. Select Jira as your action app and Add Comment to Issue as your action event.

Jira_action_tutorial_image.png

Once again, you'll be asked to connect your Jira account. Connect the Jira account where you want your acceptance criteria to be added.

Click Continue.

Jira_action_account_tutorial_image.png

Now it's time to configure how your Jira issues will appear.

In the Issue field, make sure to select the sample Jira issue from the dropdown menu. Under the Comment field, you can include your GPT-3 results by choosing Choices Text from the data dropdown.

Jira_action_set_up_choices_text_tutorial_image.png

Once you have finished customizing these fields, click Continue.

Now it's time to test your action. Click Test action. Zapier will add your acceptance criteria as a comment to your selected Jira issue.

Jira_action_test_image_tutorial.png

Here's what the comment created by the Zap would look like:

AI_tutorial_.png

Remember to copy the key. You will need this API key later when connecting your OpenAI account to Zapier.

use-openai-gpt-3-for-content-02.png

Interested in building GPT-powered apps for your clients or coworkers? Zapier's new Interfaces product makes it easy to create dynamic web pages that trigger automated workflows.

Set up your Jira trigger

To get started, set up your trigger—the event that will initiate your Zap. Select Jira as your trigger app and New Issue as your trigger event.

Jira_trigger.png

If you have not done so already, you will be prompted to connect your Jira account. Simply click on Choose an account and select an existing account or add a new one by clicking on + Connect.

Jira_trigger_tutorial_image_account.png

Click Continue. Then, choose the Jira project to which you want to add acceptance criteria. You can select the project from the dropdown menu in your connected Jira account. In this case, we have a separate Jira project called Feature request, so any new ticket under this project name will trigger the Zap.

Jira_trigger_set_up_tutorial_image.png

Click Continue.

Now, you need to test your trigger. Zapier will find a recently created issue in the project you selected. This will be used to set up the rest of your Zap. If you do not have any issues yet, create a sample issue and then test your Zap.

Here is an example of a sample issue:

Jira_sample_ticket_tutorial_image.png

Click Test trigger. Zapier will pull in the new issue within the right project. Once you see that your trigger is working correctly, click Continue.

Jira_test_trigger_tutorial_image.png

Set up your OpenAI action

Now let's set up the action—the event your Zap will perform once it is triggered. Select OpenAI as your action app and Send Prompt as your action event. Click Continue.

OpenAI_action_tutorial_trigger.png

If you have not done so already, you will be prompted to connect your OpenAI account to Zapier. Click on Choose an account… and either select an existing account or add a new one by clicking on + Connect a new account. Then, click Continue.

OpenAI_action_tutorial_account_image.png

Next, you will need to insert your OpenAI API key, which you copied earlier. Then, you need to specify how your Zap will generate your acceptance criteria.

You can pull in data from your Jira issues by clicking inside any empty field where you want the data to go. Simply select an option from the Insert Data dropdown menu. This includes the AI model, prompt, temperature, and maximum length.

In the Prompt field, provide the AI with directions to create the criteria. In this case, the prompt is: Can you give me the acceptance criteria for the PRD for the product team for the following request—it must be very specific.

Now, we need to pull in the Jira issue description from the sample issue selected by the Zap.

OpenAI_prompt_tutorial_image.png

You can also adjust other factors, such as temperature, length, sequences, and frequency penalty for the writing, but it is not necessary for your acceptance criteria. You can leave these fields as they are:

OpenAI_action_prompt_adjustments_image.png

Once you have finished customizing these fields, click Continue.

Now it is time to test your action. When you click Test & Review or Test & Continue, Zapier will fetch the acceptance criteria from OpenAI according to your customizations. Once you see that your trigger is working correctly, click Continue.

OpenAI_prompt_test_image.png

Set up your Jira action

Next, it is time to set up one more action step. Select Jira as your action app and Add Comment to Issue as your action event.

Jira_action_tutorial_image.png

Again, you will be prompted to connect your Jira account. Connect the Jira account where you want your acceptance criteria to be added.

Click Continue.

Jira_action_account_tutorial_image.png

Now it is time to set up how your issues in Jira will appear.

In the Issue field, make sure to select your sample Jira issue from the dropdown menu. Under the Comment field, you can pull in your GPT-3 results by selecting Choices Text from the data dropdown.

Jira_action_set_up_choices_text_tutorial_image.png

Once you have finished customizing these fields, click Continue.

Now it is time to test your action. Click Test action. Zapier will add your acceptance criteria as a comment to your selected Jira issue.

Jira_action_test_image_tutorial.png

Here is how ours looks:

Related Articles

View More >>

Unlock the power of AI with HIX.AI!