Writing effective prompts for ChatGPT

Writing effective prompts for ChatGPT can help you get better and more relevant answers from the AI model. Here are some tips on how to write the best prompts for ChatGPT with some of automations:

  • Use Chat Markup Language (ChatML) to format your inputs and outputs. ChatML is a syntax that allows you to define different aspects of a conversation, such as the roles, names, messages, and emotions of the participants. ChatML helps the model understand your context and intent better.
  • Specify your desired focus, format, style, intended audience and text length for your outputs. You can use tags like <output focus="..."> or <output format="..."> to tell the model what kind of output you want. You can also use attributes like style="...", audience="...", or length="..." to fine-tune your outputs.
  • Use examples and templates to guide the model. You can provide examples of inputs and outputs that match your expectations using tags like <example> or <template>. You can also use user-submitted examples from online platforms like Midjourney or PromptDB to get inspiration.
  • Use automations to simplify your workflow. You can use tools like OpenAI Playground or OpenAI Codex to create automations that generate prompts for you based on your inputs. You can also use tools like Zapier or Integromat to connect ChatGPT with other apps and services.
  • Test and refine your prompts regularly. You can use tools like OpenAI Playground or OpenAI Codex to test your prompts and see how they perform with different inputs. You can also use tools like Prompt Analyzer or Prompt Optimizer to evaluate and improve your prompts based on metrics like relevance, coherence, creativity, etc.


To learn more about how to write effective prompts for ChatGPT, please visit https://learn.microsoft.com/en-us/azure/cognitive-services/openai/how-to/chatgpt

要查看或添加评论,请登录

社区洞察