Prompt cell
A simple and user-friendly way to harness the capabilities of LLMs in your conversations
The Prompt cell (powered by OpenAI's ChatGPT) is a sophisticated tool to enhance and enrich your conversational flows in Syntphony CAI, allowing a more coherent, fluid, and custom interactions. This is a component that uses Generative AI technology to produce any content, suitable for multiple needs and scenarios.
This cell allows you to access the specified model during execution and generate content on the fly according to your configured settings.
Creating a Prompt cell
To create a Prompt cell, proceed to the "Advanced Options" on the cells library in the Dialog Manager or thought the repository.

The main fields in a Prompt cell are:
We will get to know a little bit about each one further on.
Prompt
Prompts are very useful in automating language-based tasks. You can use it to generate content to match a desired tone, emotion, context, and user preferences, or even contribute to the virtual agent personality. Prompts can also support code creation, content summarization, information classification, and masking sensitive information.
Prompts also support Dynamic Content. You may add variables such as the most recent user input, environment, and bot parameters straight in the prompt text.
Advanced settings
The model used by a Prompt Cell depends on the project's LLM integration. With Azure OpenAI by Syntphony, you can select the model directly in each Prompt Cell, and this choice applies only to that Cell. With a private OpenAI or Azure OpenAI provider, the model is selected during the provider and project configuration and applies to compatible generative resources, including Prompt Cell.
Each model provides specific settings to fine-tune response generation, such as Temperature, Top P, Frequency Penalty, Presence Penalty, Reasoning Effort, and Verbosity. Available settings and values vary by model.
Prompt Cells also provide Maximum Tokens, which limits the maximum number of tokens generated in the output, counting both prompt (input) and preview (output). Since tokens do not correspond directly to words or characters, the final response length may vary.
Learn more about Advanced Model Settings.
Variable (hidden context)
This field is crucial to retrieve the content generated. The variable written here will store the content for future use in the flows.
Once you have your prompt, write down a variable in the required field Variable with the syntax $hiddenContext.(yourVariable). You can then use this freely at any Syntphony CAI-context compatible cell. In the example below, the chosen variable was "reservation".

To retrieve the generated content (in the example, the list of best cities to travel to during the current season in the Southern Hemisphere), copy and paste the entire value written here into the text field in other cells.

Now, every time a customer reaches this part of the conversation, a new request for this prompt will be generated.
Preview
You can preview the generation when editing a Prompt cell and fine tune it before you save it. If you click the "Generate Content" button, a new preview will be generated with the current prompt + advanced settings parameters.
Note that if you have added Dynamic Content variables to your prompt, the test will fail. We recommend you to replace the variables with the expected value of those fields during the test.
Use cases examples
While the Prompt cell has an infinity of use cases, we have detailed examples of interesting use cases in the Practical examples page.
Last updated
Was this helpful?