Zenphi's Gemini Action explained


Sometimes we get the question: "What exactly is the difference between the system instruction and the prompt in zenphi's Gemini actions?"

  • System Instructions: Set the stage for how the action should act, its tone, its expertise, and any constraints on its responses.  They focus on the "who" and "how" of the action’s response. Like "Respond in the style of a Shakespearean play." or “You are a helpful customer support agent for a software company.”

  • Prompt: Is the specific question, request, or task you want the AI to address in that particular turn of the action execution. It's the immediate input that you provide to get a specific output. It focus on the "what" you want the model to do. Like "Summarize the main points of the provided article." or "Write a short story about a robot who learns to love."


How to Make Best Use of Both:

  1. Establish the Foundation with System Instructions:

    • Define the Role: Clearly state the persona or role you want the action to adopt. This helps it tailor its language, knowledge, and approach.

    • Set the Tone: Specify the desired tone of the responses (e.g., formal, informal, humorous, technical).

    • Provide Constraints: Outline any limitations or rules the action should follow (e.g., specific formats, topics to avoid, length restrictions).

    • Specify Output Format: If you need the output in a particular structure (e.g., JSON, Markdown, a specific code format), include this in the system instructions.

    • Define Expertise Level: Indicate the level of knowledge the action should assume (e.g., expert, beginner).

  2. Provide Specific Tasks with Prompts:

    • Be Clear and Concise: Formulate your prompts in a way that is easy for the action to understand your specific request.

    • Provide Context: Include any necessary background information or context that the action needs to fulfill your request effectively.

    • Be Specific: The more specific your prompt, the more likely you are to get a relevant and accurate response.

    • Break Down Complex Tasks: For complicated requests, consider breaking them down into smaller, more manageable prompts.

    • Use Examples (Few-Shot Prompting): In your prompt, you can provide a few examples of the desired input-output format to further guide the action. This can be very powerful when combined with system instructions.