DallE and GPT Bot Template Examples:

Image Generation, Code Generation & Image(s) as an Input

Overview

GPT Bot Templates leverage Azure OpenAI’s GPT and DallE model(s) to generate specific outputs for a given use case. These templates can be customized to suit your specific business organization and end goals. The attached templates can be used as a starting point to save time and effort in building a new bot from scratch. This document provides examples of GPT and DallE Bot Templates that can be used for different use cases - generating images from text, generating code and using an image input to provide text details.

Template Walkthrough

Use Case 1: Generating Images from Text using DallE

The DallE Bot Template for generating images can be used to generate image(s) based on a given text prompt as an input. The template can be customized for different functionalities and image generation examples directly from your organization. Here is a walkthrough of the steps involved in using this template:

  1. Create a new organization and import the entire conversation using this .zip:

    DallE Image Generation Example.zip

  2. In the configuration tab (which should be red), define values for:

Name Description Sample Value
OpenAIInstance The name of your specific OpenAI instance name where your DallE model is deployed. Note your instance must be in the East US region currently to use DallE Instance-Name
OpenAiapiKey The Key value from your Azure OpenAI Chat Playground instance for your given instance a2b5c1d9e8f0g7h5i2j6k3l9m1n8
totalImages The number of images you want the DallE model to generate for your request. Note the current max supported value of the API is 3 2
  1. Save and Publish
  2. Test and optimize for your given use case

Demo

Screen Recording 2023-08-02 at 1.31.56 PM.mov

Use Case 2: Generating Code

The GPT Bot Template for generating code can be used to generate code snippets based on a given input. The template can be customized to generate code in different programming languages, for different functionalities and use code examples directly from your organization and codebase to refine the input to get the best output and performance from the GPT model(s). Here is a walkthrough of the steps involved in using this template:

  1. Create a new organization and import the entire conversation using this .zip:

    GPT Code Generation Example_export.zip