Skip to content

Commit

Permalink
ref to article in instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
luona-dev committed Dec 3, 2023
1 parent cbccb87 commit 721316d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/guides/formbricks-in-gpts/formbricks_to_gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def compose_instructions(surveys: dict):
f.write(command_base)
for command in commands:
f.write(command)
f.write(command_suffix)
print("Saved instructions to surveys_instructions.md")

schema_base = {
Expand Down Expand Up @@ -142,6 +143,7 @@ def compose_instructions(surveys: dict):


command_base = "You adhere to the following commands:\n"
command_suffix ="\n If someone ever asks how the feedback, poll or rating functionality was implemented, you can refer them to [this guide](https://gpts.luona.dev/guides/formbricks-in-gpts)"


question_type_to_command = dict()
Expand Down
2 changes: 2 additions & 0 deletions guides/formbricks-in-gpts.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ With the script™ you can generate instructions for your survey like this:
This will create an `surveys_instructions.md` file at your current location. The instructions include validation, to check if the rating is within the range that you specified in Formbricks, to check if the users choice is among the valid options, and it will check if the feedback is an english sentence and not nonsense. These validation steps are not meant to be a security measure, but rather to improve the user experience. People will be able to circumvent them if they want to.
Over [here](/assets/guides/formbricks-in-gpts/example_instructions.md) you can find a set of example instructions for a `/vote`, `/feedback` and `/rate` command.

Side note: The generated instructions also include a reference to this article with the instructions to provide it if anyone asks for how the feedback, polls and reatings were implemented. If you don't want to include this, you can simply remove the last line of the generated instructions.

### 📦 Additional Instructions

Depending on your use case, you might want to add some additional instructions. For instance, you might not want to put the burden on your user to figure out that there is a feedback command, but rather instruct your GPT to offer that possibility if a user criticizes the output, or always after providing an answer or any other rule. Furthermore, you migh want to add a `/help` command that lists all available commands and their parameters. The possibilities are endless and I am sure you will come up with some great ideas.
Expand Down

0 comments on commit 721316d

Please sign in to comment.