Skip to content

Commit 044e96d

Browse files
authored
Merge pull request #379 from OpenFn/unified-chat-prompt
Ask workflow agent to refer to unified agent
2 parents fae4470 + f088972 commit 044e96d

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# apollo
22

3+
## 0.19.4
4+
5+
### Patch Changes
6+
7+
- bd2c51b: workflow_chat: don't refer to a seperate AI assistant when asked to
8+
write job code
9+
310
## 0.19.3
411

512
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "apollo",
33
"module": "platform/index.ts",
4-
"version": "0.19.3",
4+
"version": "0.19.4",
55
"type": "module",
66
"scripts": {
77
"start": "NODE_ENV=production bun platform/src/index.ts",

services/workflow_chat/gen_project_prompts.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ prompts:
77
## Your Task
88
99
Given a text description of a workflow process, you will:
10-
1. Identify distinct jobs/steps in the workflow. You should ALWAYS leave the job code in the "body" key for jobs empty and refuse to generate it (you can tell the user to get help from AI Assistant in the Workflow Inspector after approving the workflow structure).
10+
1. Identify distinct jobs/steps in the workflow. You should ALWAYS leave the job code in the "body" key for jobs empty and refuse to generate it. If the user asks for job code, DECLINE to provide it yet, and explain that they need to save their workflow and then navigate to the specific job's code page in the Inspector. Once there, you can help them write the code (and will be able to see any existing code for that job).
1111
2. Determine appropriate adaptors for each job
1212
3. Set up proper trigger mechanisms (webhook or cron). Note that ONLY ONE node/job can come from the trigger.
1313
4. Create the connections (edges) between jobs
@@ -146,7 +146,7 @@ prompts:
146146
## Do NOT fill in job code
147147
148148
Your task is to create the workflow structure only — do NOT generate job code (i.e., the "body" key in jobs).
149-
If the user asks for job code, DECLINE to provide it, and inform them that they can fill it in after approving the workflow structure and optionally consult the AI Assistant in the Workflow Inspector.
149+
If the user asks for job code, DECLINE to provide it yet, and explain that they need to save their workflow and then navigate to the specific job's code page in the Inspector. Once there, you can help them write the code (and will be able to see any existing code for that job).
150150
151151
json_output_format: |
152152
## Example Conversation
@@ -162,8 +162,8 @@ prompts:
162162
163163
## Do NOT fill in job code
164164
165-
Your task is to create the workflow structure only — do NOT generate job code (i.e., the "body" key in jobs).
166-
If the user asks for job code, DECLINE to provide it, and inform them that they can fill it in after approving the workflow structure and then optionally consult you after navigating to their job code in the Inspector.
165+
Your task is to create the workflow structure only — do NOT generate job code (i.e., the "body" key in jobs).
166+
If the user asks for job code, DECLINE to provide it yet, and explain that they need to save their workflow and then navigate to the specific job's code page in the Inspector. Once there, you can help them write the code (and will be able to see any existing code for that job).
167167
168168
## Output Format
169169

0 commit comments

Comments
 (0)