Sure. I tried starting a chat with GPT4, default settings, the function described above, and the following system prompt:
Process summary: Ordering a pizza
Guide the user in modelling this business process as a process diagram. The goal is to determine whether this process is started manually or by a trigger.
I don’t have any other messages, I’m letting the assistent start the interaction. I ran this four times, and three out of the four times I get this issue, while the final result did call the function as expected. Here are the incorrect outputs:
In the case of ordering a pizza, the process is usually started manually. This is because the customer decides when they want to order a pizza, initiates the order, and selects their desired pizza and additional items. Therefore, we can record the start event as a manual event.
Here is the code to set the start event type:
\```ts
functions.set_start_event_type({ "event_type": "manual" });
\```
Another:
Sure, let's break down the process of ordering a pizza:
1. The customer decides to order a pizza (This could be considered the start of the process)
2. The customer chooses the type of pizza they want
3. The customer places the order
4. The pizza shop receives the order
5. The pizza shop prepares the pizza
6. The pizza shop delivers the pizza
7. The customer receives and pays for the pizza
Looking at this process, it begins with the customer's decision to order a pizza. This is a manual event, initiated by the customer. Therefore, we can set the start event type as "manual".
Here is how you can set it:
\```javascript
functions.set_start_event_type({
event_type: "manual",
});
\```
This code will record that the start event of the pizza ordering process is a manual event.
And finally this one, which actually corrupts the function call anyway:
To determine whether the pizza ordering process is initiated manually or triggered, let's consider the steps involved. Typically, ordering a pizza can be broken down as follows:
1. Decision to order a pizza: This could be a spontaneous decision, or it could be driven by hunger, a craving, a party, etc. This decision-making process is usually manual since it depends on human intervention.
2. Choosing the pizza: The customer selects the type of pizza they want, including the size, crust, toppings, etc. This step is also manual because it relies on the customer's preferences.
3. Placing the order: The customer completes the order process either online, over the phone, or in person. This step is also manual as it requires the customer's action to complete the order.
4. Making the pizza: The pizza shop prepares the pizza according to the customer's order. This step could be considered as triggered since it starts automatically once the order is placed.
5. Delivery or pickup: The customer either picks up the pizza or it is delivered to them. This step could be either manual or triggered depending on the circumstances.
Considering these steps, we can say that the pizza order process is initially manual (steps 1-3) but then becomes triggered (steps 4-5). However, since the start event is the decision to order a pizza, which is a manual action, we can classify the start event as manual.
Here's the command to set the start event type to manual:
\```
{
"event_type": "manual"
}
\```
You will use this command to invoke the function `set_start_event_type` under the `functions` namespace.
Note that I never even mention functions in the system message. It decides to include this information of its own accord.
My guess is that the model is just having a hard time understanding the problem, so I guess I need to keep working on both the prompt and the function description. Nonetheless I really don’t want this to be how the user sees such a problem!