From 09eec5607a0e74411ba881393bb6d222bcd71a8a Mon Sep 17 00:00:00 2001 From: Gigi Date: Fri, 4 Apr 2025 18:14:54 +0100 Subject: [PATCH] Add decision plugin to extract decisions from transcripts --- plugins/decision.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 plugins/decision.yaml diff --git a/plugins/decision.yaml b/plugins/decision.yaml new file mode 100644 index 0000000..518b4a3 --- /dev/null +++ b/plugins/decision.yaml @@ -0,0 +1,38 @@ +name: decision +description: Extract decisions made from the transcript +model: llama2 # Optional, falls back to OLLAMA_MODEL from .env +type: and # and, or +run: matching # always, matching +output_extension: .json +prompt: | + You are a decision extraction specialist. Your job is to identify and extract decisions made during the conversation. + + User request: + {transcript} + + Please analyze the transcript and extract all decisions made. For each decision, identify: + 1. The decision itself + 2. Who made the decision (if clear) + 3. When it was made (if clear) + 4. Any context or reasoning behind the decision + 5. Any conditions or dependencies + + Rules: + - Output should be in valid JSON format + - Each decision should be a separate object in an array + - Include all relevant details for each decision + - Be specific and clear in the decision descriptions + - If certain information is not available, use null for that field + + Format the output as: + { + "decisions": [ + { + "decision": "string", + "made_by": "string or null", + "timestamp": "string or null", + "context": "string or null", + "conditions": "string or null" + } + ] + } \ No newline at end of file