Content Generation

Estimated reading: 5 minutes 1151 views

This activity allows users to generate content based on the provided input and system prompt. Use it to create dynamic and context-aware outputs.

Technical Reference

Configuration

Once the integration is connected from the Manager, the property panel will automatically display the connected integration.
If you see the message “Add new connection”, click here to learn how to set up a new connection.

Below are the properties available after the project has been integrated:

Provider: *This parameter indicates the account name associated with integration.

Model Name: *Specifies to choose the list of models available for Gen AI integration. 

Input

DelayAfter: It assists the user to add a delay before initiating subsequent activities. The delay duration here is in milliseconds. By default, it is set to “500” milliseconds. When the option is left blank, the delay will not be considered.

DelayBefore: It assists the user in adding a delay before starting the execution of the activities. The delay duration here is in milliseconds. By default, it is set to “500” milliseconds. When the option is left blank, the delay will not be considered.

User Input: *Specifies the input to generate the desired content. It accepts values either as a string enclosed in double quotes or as a string variable.

System Prompt: *Specifies the role, tone, and behavior the AI should follow while generating responses. It acts as the guiding instruction to set the context for how the output should be framed. It accepts the values either as a string enclosed in double quotes or a string variable. Refer the example below. 

Maximum Token: Specifies the maximum length of the generated content. Accepts either an Int32 value or an Int32 variable.

Timeout: Specifies the maximum time allowed for the activity to execute. If the connection is not established within this period, an exception will be thrown. By default, it is set to “30000” milliseconds. 

Test: Selecting this option opens the Co-Pilot assistant, allowing you test the provided input and view the output simultaneously.

MISC

DisplayName: Displays the name of the activity. The activity name can be customized, which aids in troubleshooting.

SkipOnError: Specify the “Boolean” value as “True” or “False.”
True: Continue executing the workflow regardless of any errors thrown.
False: Halt the workflow if it encounters any errors.
None: If the option is left blank, the activity will, by default, behave as if “False” were chosen.

Version: It indicates the version of the feature being used. 

Manage Properties

Use this wizard to configure the standard fields for the selected records. You can select the fields, assign a default value or a corresponding variable, and save the configurations. 

Output

Content Generation: Returns the generated content of the provided input as a string variable. 

Result: It provides the ability to view the execution status of the activity. It returns values in “Boolean.”
True: Indicates that the activity has been executed successfully without any errors.
False: Indicates that the activity has been unsuccessful due to an unexpected error being thrown.

* Represents mandatory fields to execute the workflow.

How this activity works? 

This example demonstrates how the activity uses both the Prompt and System Prompt inputs to generate a personalized, professional email for an HR scenario.

User Input

Sample Input Email from Employee (Leave Request)
Subject: Leave Request from June 24 to June 28

Hi,

I would like to request leave from June 24 to June 28 as I need to attend a family function out of town.

Please let me know if it’s approved.

Regards,
Priya
Employee ID: 0342

System Prompt

You are an HR assistant at ABC Infotech company, responsible for writing concise, professional internal emails that align with company communication standards.

When approving or responding to a leave request email:

1. Verify the completeness of the request: leave dates, type of leave, reason, employee ID.
2. Check leave balance availability.
3. Confirm compliance with notice period policy.
4. Assess if any handover or task delegation has been arranged.
5. Identify if there are overlapping team leaves or business impact.
6. Ensure alignment with company leave policies (medical proof, if required, etc.).
7. Add empathy and professionalism in your tone while informing the approval or rejection.

Use this context to generate a reply.

Generated Output

Subject: Re: Leave Request from June 24 to June 28

Hi Priya,

Thank you for your leave request. I have reviewed the details provided:

– **Leave Dates**: June 24 to June 28
– **Type of Leave**: Personal (Family Function)
– **Employee ID**: 0342

I have checked your leave balance, and you have sufficient days available. Additionally, your request complies with our notice period policy.

Please ensure that any ongoing tasks are delegated appropriately to your team members to maintain workflow continuity. Kindly confirm if you have arranged for a handover or if you need assistance in coordinating this.

Currently, there are no overlapping leaves within your team that would impact business operations during your requested leave period.

Your leave request is approved. Enjoy your time with your family, and safe travels!

Best regards,
HR Department
ABC Infotech Company

Share this Doc

Content Generation

Or copy link

CONTENTS