@clipform/mcp-server 2.6.0 → 2.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/caps-DBnfcEyJ.d.ts +20 -0
- package/dist/{chunk-L3DIBX4G.js → chunk-A5RVUIGS.js} +17 -7
- package/dist/chunk-A5RVUIGS.js.map +1 -0
- package/dist/{chunk-YAI5LQPF.js → chunk-O35IVA4L.js} +142 -9
- package/dist/chunk-O35IVA4L.js.map +1 -0
- package/dist/{chunk-WMLM53A3.js → chunk-QZO6MGNN.js} +310 -162
- package/dist/{chunk-WMLM53A3.js.map → chunk-QZO6MGNN.js.map} +1 -1
- package/dist/{chunk-44FHF2MF.js → chunk-ZOBK6CK7.js} +269 -45
- package/dist/chunk-ZOBK6CK7.js.map +1 -0
- package/dist/index.js +4 -4
- package/dist/instrument.d.ts +42 -0
- package/dist/instrument.js +5296 -0
- package/dist/instrument.js.map +1 -0
- package/dist/prompts.d.ts +3 -2
- package/dist/prompts.js +2 -2
- package/dist/resources.d.ts +3 -1
- package/dist/resources.js +2 -2
- package/dist/server.d.ts +12 -1
- package/dist/server.js +6 -4
- package/package.json +6 -1
- package/dist/chunk-44FHF2MF.js.map +0 -1
- package/dist/chunk-L3DIBX4G.js.map +0 -1
- package/dist/chunk-YAI5LQPF.js.map +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
+
FULL_CAPS,
|
|
2
3
|
WORKFLOW_TYPES,
|
|
3
4
|
getDiscoveryParams,
|
|
4
5
|
getSessionContextWithAuth
|
|
5
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-O35IVA4L.js";
|
|
6
7
|
import {
|
|
7
8
|
__export
|
|
8
9
|
} from "./chunk-G3PMV62Z.js";
|
|
@@ -4101,17 +4102,23 @@ var BUILD_ONCE_STEP = "**Build the whole form in ONE clipform_create_form call**
|
|
|
4101
4102
|
var TAGS_LINE = "- tags: one format (quiz/survey/interview/feedback/lead-gen), one genre (trivia/personality/nps/poll/testimonial), and 2-3 topic words";
|
|
4102
4103
|
var ATTACH_MEDIA_STEP = "**Attach media**: pass node_id (and form_id) on each render call (clipform_generate_video / clipform_render_video_template / clipform_render_composition) so it attaches to the node automatically once the render finishes - do not poll clipform_check_render to completion, just fire the renders and move on. Fall back to the manual two-step only for a render that didn't take a node_id: first clipform_upload_media_asset (batch all uploads in one call, include captions), then clipform_attach_node_media (batch all attachments in one call), setting show_captions: true and fit_media: true (generated renders must not be cropped).";
|
|
4103
4104
|
var REPUBLISH_STEP = "**Republish** with clipform_update_form (is_live: true) - forms are live from creation, but media and edits added since are only visible in the live form after republishing. Never skip this when you attached anything.";
|
|
4104
|
-
|
|
4105
|
+
var LOG_STEP = "**Log** with clipform_log_generation";
|
|
4106
|
+
var TEXT_ONLY_OVERRIDE = "\n\n> **Text-only override:** If the user explicitly asked for text-only (no video), skip the video production and media attachment steps. Still generate narration.";
|
|
4107
|
+
function numbered(steps) {
|
|
4108
|
+
return steps.filter((s) => typeof s === "string").map((s, i) => `${i + 1}. ${s}`).join("\n");
|
|
4109
|
+
}
|
|
4110
|
+
function intro(sessionContext, discovery) {
|
|
4111
|
+
return `${sessionContext ? sessionContext + "\n\n" : ""}${discovery}`;
|
|
4112
|
+
}
|
|
4113
|
+
var quizWorkflow = (args, sessionContext, authMode, caps) => {
|
|
4105
4114
|
const topic = args.topic ? ` about "${args.topic}"` : "";
|
|
4106
4115
|
const count = args.question_count ?? 8;
|
|
4107
4116
|
const discovery = buildDiscovery(getDiscoveryParams("quiz", void 0, authMode === "anonymous" ? "demo" : "full"), args, authMode);
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
2. **Write questions** - follow the difficulty curve (easy start, hard middle, satisfying end). Target ${count} questions.
|
|
4114
|
-
3. ${BUILD_ONCE_STEP}
|
|
4117
|
+
const craft = caps.media ? "question design, difficulty curves, and narration style" : "question design and difficulty curves";
|
|
4118
|
+
const steps = numbered([
|
|
4119
|
+
"**Research** the topic - find surprising facts, common misconceptions, myth-busters",
|
|
4120
|
+
`**Write questions** - follow the difficulty curve (easy start, hard middle, satisfying end). Target ${count} questions.`,
|
|
4121
|
+
`${BUILD_ONCE_STEP}
|
|
4115
4122
|
- Settings: show_step_counter: true, disable_back_navigation: true
|
|
4116
4123
|
- One choice node per question: config { choice: { show_answer_feedback: true }, randomise_options: true }, options with score: 1 on the correct answer and score: 0 on 3-4 plausible wrong ones. The viewer shuffles options at render time, so list them in any order. Scored options enable correct-answer marking automatically.
|
|
4117
4124
|
- Final end_screen node - EVERY quiz must have:
|
|
@@ -4120,34 +4127,29 @@ function quizWorkflow(args, sessionContext, authMode = "authenticated") {
|
|
|
4120
4127
|
- cta_type: "restart", cta_text: a short challenge like "Beat your score?" or "Try again?"
|
|
4121
4128
|
- title and message that fit the quiz's voice - short, punchy, and specific to the topic (not generic "Good job!"). Example: title: "Well played!", message: "Share your score and challenge a friend."
|
|
4122
4129
|
- NOTE: Personalised messages per score tier (score_ranges) are coming soon. For now, write one great end screen message that works for all scores.
|
|
4123
|
-
${TAGS_LINE}
|
|
4124
|
-
|
|
4125
|
-
|
|
4130
|
+
${TAGS_LINE}`,
|
|
4131
|
+
caps.media && "**Generate narration** with clipform_generate_tts - batch ALL questions in a single call (pass an array of items). Tease the question - do NOT reveal the answer or read options aloud. Keep each narration 5-15 seconds.",
|
|
4132
|
+
caps.media && `**Build video** for each question - pass each question's node_id (and form_id) on the render call so it attaches automatically once done. Pick per question; mixing treatments across one quiz is fine:
|
|
4126
4133
|
- Default - narrated slideshow: clipform_search_media (kind: "image", 3 images per question, batch all queries in one call), then clipform_generate_video with wait: false per question - fires all renders in parallel - then collect URLs with clipform_check_render.
|
|
4127
|
-
- Designed visual - when a recipe or composition fits the question or the user asks for one (e.g. a versus, a grid reveal, guess-the-city): recipe book first - clipform_list_video_templates and match the mechanic to a recipe, then clipform_render_video_template with its curated controls (wait: false, one call per question). Only if no recipe fits, drop to the raw primitives - clipform_list_compositions, then ONE clipform_render_composition call with items (all clips render in parallel). Collect job_ids with clipform_check_render. Both take narration via sound.narration
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4134
|
+
- Designed visual - when a recipe or composition fits the question or the user asks for one (e.g. a versus, a grid reveal, guess-the-city): recipe book first - clipform_list_video_templates and match the mechanic to a recipe, then clipform_render_video_template with its curated controls (wait: false, one call per question). Only if no recipe fits, drop to the raw primitives - clipform_list_compositions, then ONE clipform_render_composition call with items (all clips render in parallel). Collect job_ids with clipform_check_render. Both take narration via sound.narration.`,
|
|
4135
|
+
caps.media && ATTACH_MEDIA_STEP,
|
|
4136
|
+
REPUBLISH_STEP,
|
|
4137
|
+
caps.research && `${LOG_STEP} (sources, images, attributions)`
|
|
4138
|
+
]);
|
|
4139
|
+
return `${intro(sessionContext, discovery)}Here's how to build a great ${count}-question ${caps.media ? "video " : ""}quiz${topic} with Clipform. Read the attached quiz guide for craft knowledge on ${craft}.
|
|
4131
4140
|
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4141
|
+
## Workflow
|
|
4142
|
+
|
|
4143
|
+
${steps}${caps.media ? TEXT_ONLY_OVERRIDE : ""}`;
|
|
4144
|
+
};
|
|
4145
|
+
var personalityQuizWorkflow = (args, sessionContext, authMode, caps) => {
|
|
4135
4146
|
const topic = args.topic ? ` - "${args.topic}"` : "";
|
|
4136
4147
|
const count = args.question_count ?? 8;
|
|
4137
4148
|
const discovery = buildDiscovery(getDiscoveryParams("quiz", "personality", authMode === "anonymous" ? "demo" : "full"), args, authMode);
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
There are NO correct answers. Each option should feel equally valid - the quiz is about self-expression, not testing knowledge. show_answer_feedback must be false.
|
|
4143
|
-
|
|
4144
|
-
**NOTE:** Full category-based personality scoring (where each option maps to outcome categories and the winning category determines the result) is coming soon. For now, build personality quizzes as engaging choice-based forms with a single end screen. The experience is still great - respondents enjoy the questions themselves.
|
|
4145
|
-
|
|
4146
|
-
## Workflow
|
|
4147
|
-
|
|
4148
|
-
1. **Define 3-5 outcome categories** conceptually - these guide your question design even though automated scoring is not yet available.
|
|
4149
|
-
2. **Write questions** - each question should feel revealing but fun. Target ${count} questions.
|
|
4150
|
-
3. ${BUILD_ONCE_STEP}
|
|
4149
|
+
const steps = numbered([
|
|
4150
|
+
"**Define 3-5 outcome categories** conceptually - these guide your question design even though automated scoring is not yet available.",
|
|
4151
|
+
`**Write questions** - each question should feel revealing but fun. Target ${count} questions.`,
|
|
4152
|
+
`${BUILD_ONCE_STEP}
|
|
4151
4153
|
- Settings: show_step_counter: true, disable_back_navigation: true
|
|
4152
4154
|
- One choice node per question: config { choice: { show_answer_feedback: false } } (no right/wrong!)
|
|
4153
4155
|
- Do NOT set randomise_options (option order matters for personality quizzes - lead with the most appealing)
|
|
@@ -4158,33 +4160,42 @@ There are NO correct answers. Each option should feel equally valid - the quiz i
|
|
|
4158
4160
|
- cta_type: "restart", cta_text: "Find out again?" or "Take it again?"
|
|
4159
4161
|
- Write a title and message that feel personal and shareable. Example: title: "Thanks for playing!", message: "Share this quiz with friends and compare your answers."
|
|
4160
4162
|
- NOTE: Automated result screens per category (scoring_results) are coming soon. For now, write one engaging end screen.
|
|
4161
|
-
${TAGS_LINE}
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4163
|
+
${TAGS_LINE}`,
|
|
4164
|
+
caps.media && '**Generate narration** with clipform_generate_tts - batch ALL questions in a single call. Conversational, reflective tone. "What does this say about you?" not "Do you know the answer?"',
|
|
4165
|
+
caps.media && "**Build video** + **attach media** (same as knowledge quiz workflow)",
|
|
4166
|
+
REPUBLISH_STEP,
|
|
4167
|
+
caps.research && LOG_STEP
|
|
4168
|
+
]);
|
|
4169
|
+
return `${intro(sessionContext, discovery)}Here's how to build a ${count}-question personality quiz${topic} with Clipform. Read the attached personality quiz guide for craft knowledge on category design, option weighting, and outcome writing.
|
|
4170
|
+
|
|
4171
|
+
## How it differs from a knowledge quiz
|
|
4172
|
+
|
|
4173
|
+
There are NO correct answers. Each option should feel equally valid - the quiz is about self-expression, not testing knowledge. show_answer_feedback must be false.
|
|
4174
|
+
|
|
4175
|
+
**NOTE:** Full category-based personality scoring (where each option maps to outcome categories and the winning category determines the result) is coming soon. For now, build personality quizzes as engaging choice-based forms with a single end screen. The experience is still great - respondents enjoy the questions themselves.
|
|
4176
|
+
|
|
4177
|
+
## Workflow
|
|
4178
|
+
|
|
4179
|
+
${steps}`;
|
|
4180
|
+
};
|
|
4181
|
+
var comprehensionQuizWorkflow = (args, sessionContext, authMode, caps) => {
|
|
4168
4182
|
const count = args.question_count ?? 8;
|
|
4169
4183
|
const audienceLabel = args.audience ? ` (${args.audience})` : "";
|
|
4170
4184
|
const discovery = buildDiscovery(getDiscoveryParams("quiz", "comprehension", authMode === "anonymous" ? "demo" : "full"), args, authMode);
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
1. **Get the video content** - ask the user to paste the video's transcript, closed captions, or a detailed summary of its key points (this workflow does not extract YouTube captions itself). Use the YouTube URL, if given, only as a reference/source link for step 10, not as something to fetch.
|
|
4176
|
-
2. **Analyse the content** - identify:
|
|
4185
|
+
const steps = numbered([
|
|
4186
|
+
`**Get the video content** - ask the user to paste the video's transcript, closed captions, or a detailed summary of its key points (this workflow does not extract YouTube captions itself). Use the YouTube URL, if given, only as a reference/source link${caps.research ? " for the audit log" : ""}, not as something to fetch.`,
|
|
4187
|
+
`**Analyse the content** - identify:
|
|
4177
4188
|
- Key claims, facts, or arguments made in the video
|
|
4178
4189
|
- Specific details a casual viewer might miss
|
|
4179
4190
|
- The video's main thesis or conclusion
|
|
4180
|
-
- Any surprising or counterintuitive points
|
|
4181
|
-
|
|
4191
|
+
- Any surprising or counterintuitive points`,
|
|
4192
|
+
`**Write comprehension questions** - these test whether someone WATCHED the video, not general knowledge:
|
|
4182
4193
|
- "According to the video, what is the main reason...?"
|
|
4183
4194
|
- "What example does the video use to illustrate...?"
|
|
4184
4195
|
- Include 1-2 inference questions: "Based on the video, why does the presenter believe...?"
|
|
4185
|
-
- Avoid questions answerable without watching (e.g., common knowledge about the topic)
|
|
4186
|
-
|
|
4187
|
-
|
|
4196
|
+
- Avoid questions answerable without watching (e.g., common knowledge about the topic)`,
|
|
4197
|
+
`**Adapt to the audience**${audienceLabel} - simplify language for younger audiences, focus on concrete/visual details rather than abstract arguments`,
|
|
4198
|
+
`${BUILD_ONCE_STEP}
|
|
4188
4199
|
- Settings: show_step_counter: true, disable_back_navigation: true
|
|
4189
4200
|
- One choice node per question: config { choice: { show_answer_feedback: true }, randomise_options: true }, options with score: 1 on the correct answer and score: 0 on 3-4 plausible wrong ones - make distractors things someone might guess without watching. The viewer shuffles options at render time, so list them in any order. Scored options enable correct-answer marking automatically.
|
|
4190
4201
|
- Final end_screen node:
|
|
@@ -4193,14 +4204,20 @@ function comprehensionQuizWorkflow(args, sessionContext, authMode = "authenticat
|
|
|
4193
4204
|
- cta_type: "restart", cta_text: "Rewatch and try again?"
|
|
4194
4205
|
- title and message that reference the video. Example: title: "How well do you know this video?", message: "Share your score and see if your friends were really paying attention."
|
|
4195
4206
|
- NOTE: Personalised messages per score tier (score_ranges) are coming soon. For now, write one great end screen message.
|
|
4196
|
-
- tags: ["quiz", "comprehension", "youtube"] + 2-3 topic words from the video
|
|
4197
|
-
|
|
4198
|
-
|
|
4207
|
+
- tags: ["quiz", "comprehension", "youtube"] + 2-3 topic words from the video`,
|
|
4208
|
+
caps.media && `**Generate narration** with clipform_generate_tts - batch ALL questions in a single call. Reference the video naturally: "If you watched closely, you'll know this one..." Keep each narration 5-10 seconds.`,
|
|
4209
|
+
caps.media && `**Build video** for each question:
|
|
4199
4210
|
- clipform_search_media (kind: "image") - 3 images per question, batch all queries in one call
|
|
4200
|
-
- clipform_generate_video with wait: false per question - fires all renders in parallel - then collect URLs with clipform_check_render
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4211
|
+
- clipform_generate_video with wait: false per question - fires all renders in parallel - then collect URLs with clipform_check_render`,
|
|
4212
|
+
caps.media && ATTACH_MEDIA_STEP,
|
|
4213
|
+
REPUBLISH_STEP,
|
|
4214
|
+
caps.research && `${LOG_STEP} - include the YouTube URL and video title/channel as sources, using whatever of those the user provided`
|
|
4215
|
+
]);
|
|
4216
|
+
return `${intro(sessionContext, discovery)}Here's how to build a ${count}-question comprehension quiz from a YouTube video. Read the attached quiz and comprehension guides for craft knowledge on question design and distractor techniques.
|
|
4217
|
+
|
|
4218
|
+
## Comprehension Quiz Workflow
|
|
4219
|
+
|
|
4220
|
+
${steps}
|
|
4204
4221
|
|
|
4205
4222
|
## Question Types for Comprehension
|
|
4206
4223
|
|
|
@@ -4212,91 +4229,100 @@ function comprehensionQuizWorkflow(args, sessionContext, authMode = "authenticat
|
|
|
4212
4229
|
| Contrast | "The video compares X and Y. What was the key difference?" | Comprehension depth |
|
|
4213
4230
|
| Conclusion | "What was the presenter's final point?" | Watched to the end |
|
|
4214
4231
|
|
|
4215
|
-
Wrong answers should sound right to someone who didn't watch but googled the topic. The quiz should be unfair to non-watchers and fair to watchers.
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
}
|
|
4219
|
-
function compositionQuizWorkflow(args, sessionContext, authMode = "authenticated") {
|
|
4232
|
+
Wrong answers should sound right to someone who didn't watch but googled the topic. The quiz should be unfair to non-watchers and fair to watchers.${caps.media ? TEXT_ONLY_OVERRIDE : ""}`;
|
|
4233
|
+
};
|
|
4234
|
+
var compositionQuizWorkflow = (args, sessionContext, authMode, caps) => {
|
|
4220
4235
|
const topic = args.topic ? ` about "${args.topic}"` : "";
|
|
4221
4236
|
const count = args.question_count ?? 5;
|
|
4222
4237
|
const discovery = buildDiscovery(getDiscoveryParams("quiz", "composition", authMode === "anonymous" ? "demo" : "full"), args, authMode);
|
|
4223
|
-
|
|
4238
|
+
if (!caps.media) {
|
|
4239
|
+
return `${intro(sessionContext, discovery)}A composition quiz is a guess-and-reveal quiz built from rendered video clips (flag sweeps, blurred photos resolving, and similar), which needs the media tools - this connection exposes form-building tools only, so those renders are not available here.
|
|
4224
4240
|
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4241
|
+
Build a standard scored quiz${topic} instead: call clipform_get_workflow with type "quiz" and follow that recipe. ${count} questions is a good target.`;
|
|
4242
|
+
}
|
|
4243
|
+
const steps = numbered([
|
|
4244
|
+
"**Discover what's renderable - recipe book first.** Call clipform_list_video_templates and match each question's mechanic against a recipe's description/keywords (e.g. guess-the-city for a where-in-the-world/geography mechanic, mystery-reveal for guess-the-image/flag, colour-grid for palette-matching). Render a matched recipe with clipform_render_video_template and its curated controls. Only when no recipe fits a question, drop to the raw primitives - clipform_list_compositions, matched via the composition guide's matrix - and render with clipform_render_composition. Availability varies by session; choose ONLY from what these tools return. Mix 2-3 mechanics across the quiz; for questions with no fitting recipe or composition, use the base quiz's Ken Burns pipeline instead.",
|
|
4245
|
+
`**Write questions** - difficulty curve as in the base guide. Difficulty = subject obscurity (Japan's flag vs Kiribati's), never clue degradation. ${count} questions \u2248 ${count + 1} nodes total (one scored choice node per question + the end screen); an optional reveal beat adds one node per question it's used on - check the plan's node limit.`,
|
|
4246
|
+
"**Render all clips** - raw-composition clips batch in ONE clipform_render_composition call with items (parallel); recipe clips render one clipform_render_video_template call each (wait: false). Collect all job_ids with clipform_check_render. Chain-state compositions: clue clip animate: true; when a question uses an optional reveal clip, animate: false + answer props.",
|
|
4247
|
+
`${BUILD_ONCE_STEP}
|
|
4231
4248
|
- Settings: show_step_counter: true, disable_back_navigation: true
|
|
4232
4249
|
- Per question, ONE scored choice node (type: "choice"): question as prompt, config { choice: { show_answer_feedback: true }, randomise_options: true }, options with score: 1 on the correct answer and score: 0 on 2-3 wrong ones. Scored options enable correct-answer marking automatically - the viewer's answer feedback delivers the correct answer.
|
|
4233
4250
|
- Optional reveal beat (type: "button"): add one only when the quiz wants extra context or celebration - the answer in the prompt ("It was Japan!"), config { button_text: "Next one" }
|
|
4234
4251
|
- Final end_screen node: show_score: true, icon: "trophy", show_share_button: true, cta_type: "restart", cta_text: a short challenge. NOTE: per-tier messages (score_ranges) are coming soon - write one great message.
|
|
4235
|
-
- tags: format "quiz", genre "trivia", and 2-3 topic words
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4252
|
+
- tags: format "quiz", genre "trivia", and 2-3 topic words`,
|
|
4253
|
+
"**Generate narration** with clipform_generate_tts - batch ALL items in one call. The visual does the teasing: set stakes, never describe what's on screen or read the clue aloud. If a question uses the optional reveal node, its narration can celebrate.",
|
|
4254
|
+
`${ATTACH_MEDIA_STEP} Attach the clue clip to each choice node; attach reveal clips to their button nodes only on questions that use one.`,
|
|
4255
|
+
REPUBLISH_STEP,
|
|
4256
|
+
caps.research && `${LOG_STEP} - record the composition IDs used per question alongside sources and attributions`
|
|
4257
|
+
]);
|
|
4258
|
+
return `${intro(sessionContext, discovery)}Here's how to build a ${count}-question composition quiz${topic} with Clipform - a guess-and-reveal quiz where each question is a rendered composition (flag sweep, Rebus, blurred photo resolving) instead of a stock-image slideshow. Read the attached quiz and composition guides for the mechanic matrix, the Composition Question Node pattern, and difficulty design.
|
|
4259
|
+
|
|
4260
|
+
## Composition Quiz Workflow
|
|
4261
|
+
|
|
4262
|
+
${steps}`;
|
|
4263
|
+
};
|
|
4264
|
+
var interviewWorkflow = (args, sessionContext, authMode, caps) => {
|
|
4242
4265
|
const purpose = args.purpose ?? "responses";
|
|
4243
4266
|
const format = args.response_format ?? "all";
|
|
4244
4267
|
const consent = args.needs_consent ?? true;
|
|
4245
4268
|
const discovery = buildDiscovery(getDiscoveryParams("interview", void 0, authMode === "anonymous" ? "demo" : "full"), args, authMode);
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
1. **Identify the ask** - what do you need from respondents? ${purpose}.
|
|
4251
|
-
2. ${BUILD_ONCE_STEP}
|
|
4269
|
+
const steps = numbered([
|
|
4270
|
+
`**Identify the ask** - what do you need from respondents? ${purpose}.`,
|
|
4271
|
+
`${BUILD_ONCE_STEP}
|
|
4252
4272
|
- Settings: show_step_counter: true, disable_back_navigation: false
|
|
4253
4273
|
- Warm-up question first (type: "open") - something easy: "Tell us your name and role"
|
|
4254
4274
|
- 2-3 core questions (type: "open") - one topic per question.${format === "all" ? " Enable text + audio + video responses." : ` Enable ${format} responses.`}
|
|
4255
4275
|
- Contact collection (type: "details") - first name + email minimum${consent ? `
|
|
4256
4276
|
- Consent node - "I agree that my response may be used in [context]"` : ""}
|
|
4257
4277
|
- End screen that sets expectations: "Thanks! We'll be in touch."
|
|
4258
|
-
${TAGS_LINE}
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
const topic = args.topic ? ` for ${args.topic}` : "";
|
|
4265
|
-
const anonymous = args.anonymous ?? true;
|
|
4266
|
-
const discovery = buildDiscovery(getDiscoveryParams("survey", void 0, authMode === "anonymous" ? "demo" : "full"), args, authMode);
|
|
4267
|
-
return `${sessionContext ? sessionContext + "\n\n" : ""}${discovery}Here's how to build a survey${topic} with Clipform. Read the attached survey guide for craft knowledge on question design and reducing respondent fatigue.
|
|
4278
|
+
${TAGS_LINE}`,
|
|
4279
|
+
caps.media && `**Optional - Rich Media:** Add TTS narration (clipform_generate_tts, batch all questions in one call) with a warm, inviting tone - "We'd love to hear your story..." Video backgrounds (clipform_search_media \u2192 clipform_generate_video) on the intro question can set a professional tone.`,
|
|
4280
|
+
REPUBLISH_STEP,
|
|
4281
|
+
caps.research && LOG_STEP
|
|
4282
|
+
]);
|
|
4283
|
+
return `${intro(sessionContext, discovery)}Here's how to build an interview form for collecting ${purpose} with Clipform. Read the attached interview guide for craft knowledge on question design and pacing.
|
|
4268
4284
|
|
|
4269
4285
|
## Workflow
|
|
4270
4286
|
|
|
4271
|
-
|
|
4272
|
-
|
|
4287
|
+
${steps}`;
|
|
4288
|
+
};
|
|
4289
|
+
var surveyWorkflow = (args, sessionContext, authMode, caps) => {
|
|
4290
|
+
const topic = args.topic ? ` for ${args.topic}` : "";
|
|
4291
|
+
const anonymous = args.anonymous ?? true;
|
|
4292
|
+
const discovery = buildDiscovery(getDiscoveryParams("survey", void 0, authMode === "anonymous" ? "demo" : "full"), args, authMode);
|
|
4293
|
+
const steps = numbered([
|
|
4294
|
+
"**Define the key metric** - what's the one number you care about? (NPS, satisfaction, likelihood to recommend)",
|
|
4295
|
+
`${BUILD_ONCE_STEP}
|
|
4273
4296
|
- Settings: show_step_counter: true, disable_back_navigation: false
|
|
4274
4297
|
- Key metric question FIRST (type: "choice" or "rating") - while attention is highest
|
|
4275
4298
|
- One "why?" follow-up (type: "open") - "What's the main reason for your score?"
|
|
4276
4299
|
- 2-3 specific questions (type: "choice") - only ask what you'll act on${!anonymous ? `
|
|
4277
4300
|
- Contact collection (type: "details") - name + email for follow-up` : ""}
|
|
4278
4301
|
- End screen: "Thanks for your feedback!"
|
|
4279
|
-
${TAGS_LINE}
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4302
|
+
${TAGS_LINE}`,
|
|
4303
|
+
caps.media && "**Optional - Rich Media:** For a more engaging experience, add TTS narration (clipform_generate_tts) for the intro or key questions, video backgrounds (clipform_search_media \u2192 clipform_generate_video), or background music (clipform_search_music).",
|
|
4304
|
+
REPUBLISH_STEP,
|
|
4305
|
+
caps.research && LOG_STEP
|
|
4306
|
+
]);
|
|
4307
|
+
return `${intro(sessionContext, discovery)}Here's how to build a survey${topic} with Clipform. Read the attached survey guide for craft knowledge on question design and reducing respondent fatigue.
|
|
4308
|
+
|
|
4309
|
+
## Workflow
|
|
4310
|
+
|
|
4311
|
+
${steps}
|
|
4283
4312
|
|
|
4284
4313
|
## Key rule: 5 questions max. Every extra question costs completions.`;
|
|
4285
|
-
}
|
|
4286
|
-
|
|
4314
|
+
};
|
|
4315
|
+
var funnelWorkflow = (_args, sessionContext) => {
|
|
4287
4316
|
return `${sessionContext ? sessionContext + "\n\n" : ""}Funnel capabilities with conditional routing and branching logic are planned but not yet available.
|
|
4288
4317
|
|
|
4289
4318
|
Proceed now: build a linear qualification survey or quiz directly with clipform_create_form instead of branching - do not defer to another prompt or stop to ask the user. Order the questions to gather the qualification criteria, then finish with a single end screen.`;
|
|
4290
|
-
}
|
|
4291
|
-
|
|
4319
|
+
};
|
|
4320
|
+
var testimonialWorkflow = (args, sessionContext, authMode, caps) => {
|
|
4292
4321
|
const useCase = args.use_case ?? "customer stories";
|
|
4293
4322
|
const discovery = buildDiscovery(getDiscoveryParams("testimonial", void 0, authMode === "anonymous" ? "demo" : "full"), args, authMode);
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
1. **Define the story arc** - what transformation or experience do you want to capture?
|
|
4299
|
-
2. ${BUILD_ONCE_STEP}
|
|
4323
|
+
const steps = numbered([
|
|
4324
|
+
"**Define the story arc** - what transformation or experience do you want to capture?",
|
|
4325
|
+
`${BUILD_ONCE_STEP}
|
|
4300
4326
|
- Settings: show_step_counter: true, disable_back_navigation: false
|
|
4301
4327
|
- Warm-up question (type: "open") - "Tell us your name and [role/relationship/context]". Enable video + audio + text responses.
|
|
4302
4328
|
- 2-3 storytelling prompts (type: "open") - follow the before \u2192 during \u2192 after arc. Enable video responses. Example prompts:
|
|
@@ -4305,55 +4331,114 @@ function testimonialWorkflow(args, sessionContext, authMode = "authenticated") {
|
|
|
4305
4331
|
- "What's different now? What would you tell someone considering it?"
|
|
4306
4332
|
- Consent node - "I agree that my response may be used in marketing materials, on the website, and in sales presentations."
|
|
4307
4333
|
- End screen: "Thank you for sharing your story! Your experience will help others." icon: "party", no score, no restart CTA
|
|
4308
|
-
- tags: format "testimonial", genre "story", and 2-3 topic words
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
}
|
|
4316
|
-
function applicationWorkflow(args, sessionContext, authMode = "authenticated") {
|
|
4317
|
-
const role = args.role ?? "an application";
|
|
4318
|
-
const discovery = buildDiscovery(getDiscoveryParams("application", void 0, authMode === "anonymous" ? "demo" : "full"), args, authMode);
|
|
4319
|
-
return `${sessionContext ? sessionContext + "\n\n" : ""}${discovery}Here's how to build ${role} form with Clipform. Read the attached application guide for craft knowledge on structuring multi-section applications.
|
|
4334
|
+
- tags: format "testimonial", genre "story", and 2-3 topic words`,
|
|
4335
|
+
caps.media && `**Generate narration** with clipform_generate_tts - batch all prompts in a single call. Warm, appreciative tone - "We'd love to hear your story..." Keep each narration 5-8 seconds.`,
|
|
4336
|
+
caps.media && "**Optional: build video** for the intro/warm-up question to set the tone.",
|
|
4337
|
+
REPUBLISH_STEP,
|
|
4338
|
+
caps.research && LOG_STEP
|
|
4339
|
+
]);
|
|
4340
|
+
return `${intro(sessionContext, discovery)}Here's how to build a testimonial collection form for ${useCase} with Clipform. Read the attached testimonial guide for craft knowledge on storytelling prompts and making respondents comfortable.
|
|
4320
4341
|
|
|
4321
4342
|
## Workflow
|
|
4322
4343
|
|
|
4323
|
-
|
|
4324
|
-
|
|
4344
|
+
${steps}${caps.media ? "\n\n> **Text-only override:** If the user explicitly asked for text-only (no video), skip the narration and video production steps." : ""}`;
|
|
4345
|
+
};
|
|
4346
|
+
var applicationWorkflow = (args, sessionContext, authMode, caps) => {
|
|
4347
|
+
const role = args.role ?? "an application";
|
|
4348
|
+
const discovery = buildDiscovery(getDiscoveryParams("application", void 0, authMode === "anonymous" ? "demo" : "full"), args, authMode);
|
|
4349
|
+
const steps = numbered([
|
|
4350
|
+
"**Define what you're screening for** - what qualifications matter, and what questions reveal fit?",
|
|
4351
|
+
`${BUILD_ONCE_STEP}
|
|
4325
4352
|
- Settings: show_step_counter: true, disable_back_navigation: false
|
|
4326
4353
|
- Contact collection first (type: "details") - name, email, phone - while motivation is high
|
|
4327
4354
|
- 2-3 structured screening questions (type: "choice") - experience level, availability, relevant qualifications. These help you filter quickly.
|
|
4328
4355
|
- 1-2 open response questions (type: "open") - "Tell us why you're interested" or "Walk us through a relevant experience." Enable video + audio + text responses.
|
|
4329
4356
|
- Optional "Anything else?" (type: "open") - catches things you didn't think to ask.
|
|
4330
4357
|
- End screen: "Your application has been submitted. We'll review it and get back to you." icon: "tick", no score, no restart
|
|
4331
|
-
- tags: format "application", genre "screening", and 2-3 topic words
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
const eventName = args.event_name ?? "an event";
|
|
4338
|
-
const eventType = args.event_type ?? "event";
|
|
4339
|
-
const discovery = buildDiscovery(getDiscoveryParams("booking", void 0, authMode === "anonymous" ? "demo" : "full"), args, authMode);
|
|
4340
|
-
return `${sessionContext ? sessionContext + "\n\n" : ""}${discovery}Here's how to build a ${eventType} registration form for ${eventName} with Clipform. Read the attached booking guide for craft knowledge on keeping registrations fast.
|
|
4358
|
+
- tags: format "application", genre "screening", and 2-3 topic words`,
|
|
4359
|
+
caps.media && `**Optional - Rich Media:** Add TTS narration (clipform_generate_tts) - professional and welcoming: "Thanks for your interest - let's get to know you." Video backgrounds (clipform_search_media \u2192 clipform_generate_video) on the intro can make the application feel more personal.`,
|
|
4360
|
+
REPUBLISH_STEP,
|
|
4361
|
+
caps.research && LOG_STEP
|
|
4362
|
+
]);
|
|
4363
|
+
return `${intro(sessionContext, discovery)}Here's how to build ${role} form with Clipform. Read the attached application guide for craft knowledge on structuring multi-section applications.
|
|
4341
4364
|
|
|
4342
4365
|
## Workflow
|
|
4343
4366
|
|
|
4344
|
-
|
|
4345
|
-
|
|
4367
|
+
${steps}`;
|
|
4368
|
+
};
|
|
4369
|
+
var bookingWorkflow = (args, sessionContext, authMode, caps) => {
|
|
4370
|
+
const eventName = args.event_name ?? "an event";
|
|
4371
|
+
const eventType = args.event_type ?? "event";
|
|
4372
|
+
const discovery = buildDiscovery(getDiscoveryParams("booking", void 0, authMode === "anonymous" ? "demo" : "full"), args, authMode);
|
|
4373
|
+
const steps = numbered([
|
|
4374
|
+
"**Define the essentials** - what info do you actually need from attendees? Keep the list short.",
|
|
4375
|
+
`${BUILD_ONCE_STEP}
|
|
4346
4376
|
- Settings: show_step_counter: false (it's so short, a counter adds unnecessary UI), disable_back_navigation: false
|
|
4347
4377
|
- Contact collection (type: "details") - name + email minimum. Add phone only if needed.
|
|
4348
4378
|
- 1-3 event-specific questions (type: "choice") - session preferences, dietary requirements, experience level. Only ask what you'll use.
|
|
4349
4379
|
- End screen: "You're registered! Here's what to expect." Include event details (date, time, location/link) in the message. icon: "tick", no score, no restart, cta_type: "external_link" with a URL to calendar invite or event page (if available)
|
|
4350
|
-
- tags: format "registration", genre "${eventType}", and 2-3 topic words
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4380
|
+
- tags: format "registration", genre "${eventType}", and 2-3 topic words`,
|
|
4381
|
+
caps.media && "**Optional: add welcome video** - a short intro from the host. Generate narration with clipform_generate_tts, then build a video with clipform_search_media + clipform_generate_video.",
|
|
4382
|
+
REPUBLISH_STEP,
|
|
4383
|
+
caps.research && LOG_STEP
|
|
4384
|
+
]);
|
|
4385
|
+
return `${intro(sessionContext, discovery)}Here's how to build a ${eventType} registration form for ${eventName} with Clipform. Read the attached booking guide for craft knowledge on keeping registrations fast.
|
|
4386
|
+
|
|
4387
|
+
## Workflow
|
|
4388
|
+
|
|
4389
|
+
${steps}
|
|
4354
4390
|
|
|
4355
4391
|
## Key rule: 3-5 fields max. Every extra field costs registrations.`;
|
|
4356
|
-
}
|
|
4392
|
+
};
|
|
4393
|
+
var intakeWorkflow = (args, sessionContext, authMode, caps) => {
|
|
4394
|
+
const useCase = args.use_case ?? "new clients";
|
|
4395
|
+
const discovery = buildDiscovery(getDiscoveryParams("intake", void 0, authMode === "anonymous" ? "demo" : "full"), args, authMode);
|
|
4396
|
+
const steps = numbered([
|
|
4397
|
+
"**Decide what you actually need** - contact details plus one open question about what the client is looking for. Capture, don't qualify.",
|
|
4398
|
+
`${BUILD_ONCE_STEP}
|
|
4399
|
+
- Settings: show_step_counter: true, disable_back_navigation: false
|
|
4400
|
+
- Welcome (type: "button") - warm intro: "Thanks for reaching out - a couple of quick questions so we can help you properly." button_text: "Let's begin"
|
|
4401
|
+
- Contact collection (type: "details") - first name + email; phone optional
|
|
4402
|
+
- What they need (type: "open") - "Tell us a bit about what you're looking for." Enable video + audio + text responses (video-first)
|
|
4403
|
+
- Optional one qualifier (type: "choice") - only if it changes what you do next ("What are you most interested in?"). Don't stack these.
|
|
4404
|
+
- Optional "Anything else?" (type: "open") - catches what you didn't think to ask
|
|
4405
|
+
- End screen: "Thanks! We've got your details and we'll be in touch shortly." icon: "tick", no score, no restart
|
|
4406
|
+
- tags: format "intake", genre "onboarding", and 2-3 topic words`,
|
|
4407
|
+
caps.media && "**Optional: add a welcome video** - a short personal intro from you. Generate narration with clipform_generate_tts, then build a video with clipform_search_media + clipform_generate_video.",
|
|
4408
|
+
REPUBLISH_STEP,
|
|
4409
|
+
caps.research && LOG_STEP
|
|
4410
|
+
]);
|
|
4411
|
+
return `${intro(sessionContext, discovery)}Here's how to build a client intake form for ${useCase} with Clipform. Read the attached intake guide for craft knowledge on a warm welcome and low-friction capture.
|
|
4412
|
+
|
|
4413
|
+
## Workflow
|
|
4414
|
+
|
|
4415
|
+
${steps}
|
|
4416
|
+
|
|
4417
|
+
## Key rule: 3-5 steps max. An intake that feels like paperwork loses the client you just won.`;
|
|
4418
|
+
};
|
|
4419
|
+
var leadCaptureWorkflow = (args, sessionContext, authMode, caps) => {
|
|
4420
|
+
const useCase = args.use_case ?? "enquiries";
|
|
4421
|
+
const discovery = buildDiscovery(getDiscoveryParams("lead-capture", void 0, authMode === "anonymous" ? "demo" : "full"), args, authMode);
|
|
4422
|
+
const steps = numbered([
|
|
4423
|
+
"**Decide the one thing you need** - a contact. Everything else is optional and costs conversions.",
|
|
4424
|
+
`${BUILD_ONCE_STEP}
|
|
4425
|
+
- Settings: show_step_counter: false, disable_back_navigation: false
|
|
4426
|
+
- Optional hook (type: "button") - one line restating the value, e.g. "Want in? Drop your details and we'll be in touch." button_text: "Count me in"
|
|
4427
|
+
- Contact collection (type: "details") - first name + email; phone only if you'll call
|
|
4428
|
+
- Optional ONE qualifier (type: "choice") - only if the answer routes your follow-up ("What are you most interested in?"). If it doesn't, cut it.
|
|
4429
|
+
- End screen: "Thanks! We'll be in touch soon." Set the expectation (when/how). icon: "tick", no score, no restart
|
|
4430
|
+
- tags: format "lead-capture", genre "enquiry", and 2-3 topic words`,
|
|
4431
|
+
REPUBLISH_STEP,
|
|
4432
|
+
caps.research && LOG_STEP
|
|
4433
|
+
]);
|
|
4434
|
+
return `${intro(sessionContext, discovery)}Here's how to build a lead capture form for ${useCase} with Clipform. Read the attached lead-capture guide - the whole game is minimal friction. This is a LINEAR form: no branching, no scoring.
|
|
4435
|
+
|
|
4436
|
+
## Workflow
|
|
4437
|
+
|
|
4438
|
+
${steps}
|
|
4439
|
+
|
|
4440
|
+
## Key rule: 3-4 steps max. Get the contact early, qualify lightly or not at all.`;
|
|
4441
|
+
};
|
|
4357
4442
|
var WORKFLOW_BUILDERS = {
|
|
4358
4443
|
"quiz": quizWorkflow,
|
|
4359
4444
|
"interview": interviewWorkflow,
|
|
@@ -4361,21 +4446,25 @@ var WORKFLOW_BUILDERS = {
|
|
|
4361
4446
|
"funnel": funnelWorkflow,
|
|
4362
4447
|
"testimonial": testimonialWorkflow,
|
|
4363
4448
|
"application": applicationWorkflow,
|
|
4364
|
-
"booking": bookingWorkflow
|
|
4449
|
+
"booking": bookingWorkflow,
|
|
4450
|
+
"intake": intakeWorkflow,
|
|
4451
|
+
"lead-capture": leadCaptureWorkflow
|
|
4365
4452
|
};
|
|
4366
4453
|
var QUIZ_VARIANT_BUILDERS = {
|
|
4367
4454
|
"personality": personalityQuizWorkflow,
|
|
4368
4455
|
"comprehension": comprehensionQuizWorkflow,
|
|
4369
4456
|
"composition": compositionQuizWorkflow
|
|
4370
4457
|
};
|
|
4371
|
-
async function getWorkflowText(type, args = {}, variant) {
|
|
4458
|
+
async function getWorkflowText(type, args = {}, variant, caps = FULL_CAPS) {
|
|
4372
4459
|
const { text: sessionContext, authMode } = await getSessionContextWithAuth();
|
|
4373
4460
|
if (type === "quiz" && variant) {
|
|
4374
|
-
return QUIZ_VARIANT_BUILDERS[variant](args, sessionContext, authMode);
|
|
4461
|
+
return QUIZ_VARIANT_BUILDERS[variant](args, sessionContext, authMode, caps);
|
|
4375
4462
|
}
|
|
4376
|
-
return WORKFLOW_BUILDERS[type](args, sessionContext, authMode);
|
|
4463
|
+
return WORKFLOW_BUILDERS[type](args, sessionContext, authMode, caps);
|
|
4377
4464
|
}
|
|
4378
|
-
function registerPrompts(server) {
|
|
4465
|
+
function registerPrompts(server, caps = FULL_CAPS) {
|
|
4466
|
+
const mediaStyleArg = caps.media ? { media_style: external_exports.enum(MEDIA_STYLE_ENUM).optional().default("video").describe("Media style: text only, still images, or slideshow video with narration (default: video)") } : {};
|
|
4467
|
+
const styleNote = (args) => caps.media ? `, ${args.media_style ?? "video"} style` : "";
|
|
4379
4468
|
server.registerPrompt(
|
|
4380
4469
|
"create-quiz",
|
|
4381
4470
|
{
|
|
@@ -4384,7 +4473,7 @@ function registerPrompts(server) {
|
|
|
4384
4473
|
argsSchema: {
|
|
4385
4474
|
topic: external_exports.string().optional().describe("Quiz topic (e.g. 'Space exploration', 'Premier League')"),
|
|
4386
4475
|
question_count: external_exports.string().optional().default("8").describe("Number of questions (default: 8)"),
|
|
4387
|
-
|
|
4476
|
+
...mediaStyleArg
|
|
4388
4477
|
}
|
|
4389
4478
|
},
|
|
4390
4479
|
async (rawArgs) => {
|
|
@@ -4395,7 +4484,7 @@ function registerPrompts(server) {
|
|
|
4395
4484
|
role: "user",
|
|
4396
4485
|
content: {
|
|
4397
4486
|
type: "text",
|
|
4398
|
-
text: `I want to create a quiz${args.topic ? ` about "${args.topic}"` : ""}. ${args.question_count ?? 8} questions
|
|
4487
|
+
text: `I want to create a quiz${args.topic ? ` about "${args.topic}"` : ""}. ${args.question_count ?? 8} questions${styleNote(args)}.`
|
|
4399
4488
|
}
|
|
4400
4489
|
},
|
|
4401
4490
|
resourceLink("guide-quiz", "clipform://guides/quiz", "Quiz Writing Guide"),
|
|
@@ -4403,7 +4492,7 @@ function registerPrompts(server) {
|
|
|
4403
4492
|
role: "assistant",
|
|
4404
4493
|
content: {
|
|
4405
4494
|
type: "text",
|
|
4406
|
-
text: await getWorkflowText("quiz", args)
|
|
4495
|
+
text: await getWorkflowText("quiz", args, void 0, caps)
|
|
4407
4496
|
}
|
|
4408
4497
|
}
|
|
4409
4498
|
]
|
|
@@ -4419,7 +4508,7 @@ function registerPrompts(server) {
|
|
|
4419
4508
|
topic: external_exports.string().optional().describe("Quiz theme (e.g. 'Which city are you?', 'What's your work style?')"),
|
|
4420
4509
|
categories: external_exports.string().optional().describe("Comma-separated outcome categories (e.g. 'Creative, Analytical, Leader, Collaborator')"),
|
|
4421
4510
|
question_count: external_exports.string().optional().default("8").describe("Number of questions (default: 8)"),
|
|
4422
|
-
|
|
4511
|
+
...mediaStyleArg
|
|
4423
4512
|
}
|
|
4424
4513
|
},
|
|
4425
4514
|
async (rawArgs) => {
|
|
@@ -4433,7 +4522,7 @@ Outcome categories: ${args.categories}` : "";
|
|
|
4433
4522
|
role: "user",
|
|
4434
4523
|
content: {
|
|
4435
4524
|
type: "text",
|
|
4436
|
-
text: `I want to create a personality quiz${args.topic ? ` - "${args.topic}"` : ""}. ${args.question_count ?? 8} questions
|
|
4525
|
+
text: `I want to create a personality quiz${args.topic ? ` - "${args.topic}"` : ""}. ${args.question_count ?? 8} questions${styleNote(args)}.${categoriesNote}`
|
|
4437
4526
|
}
|
|
4438
4527
|
},
|
|
4439
4528
|
resourceLink("guide-quiz", "clipform://guides/quiz", "Quiz Writing Guide"),
|
|
@@ -4442,7 +4531,7 @@ Outcome categories: ${args.categories}` : "";
|
|
|
4442
4531
|
role: "assistant",
|
|
4443
4532
|
content: {
|
|
4444
4533
|
type: "text",
|
|
4445
|
-
text: await getWorkflowText("quiz", args, "personality")
|
|
4534
|
+
text: await getWorkflowText("quiz", args, "personality", caps)
|
|
4446
4535
|
}
|
|
4447
4536
|
}
|
|
4448
4537
|
]
|
|
@@ -4476,7 +4565,7 @@ Outcome categories: ${args.categories}` : "";
|
|
|
4476
4565
|
role: "assistant",
|
|
4477
4566
|
content: {
|
|
4478
4567
|
type: "text",
|
|
4479
|
-
text: await getWorkflowText("interview", args)
|
|
4568
|
+
text: await getWorkflowText("interview", args, void 0, caps)
|
|
4480
4569
|
}
|
|
4481
4570
|
}
|
|
4482
4571
|
]
|
|
@@ -4509,7 +4598,7 @@ Outcome categories: ${args.categories}` : "";
|
|
|
4509
4598
|
role: "assistant",
|
|
4510
4599
|
content: {
|
|
4511
4600
|
type: "text",
|
|
4512
|
-
text: await getWorkflowText("survey", args)
|
|
4601
|
+
text: await getWorkflowText("survey", args, void 0, caps)
|
|
4513
4602
|
}
|
|
4514
4603
|
}
|
|
4515
4604
|
]
|
|
@@ -4525,7 +4614,7 @@ Outcome categories: ${args.categories}` : "";
|
|
|
4525
4614
|
youtube_url: external_exports.string().optional().describe("YouTube video URL to create the quiz from"),
|
|
4526
4615
|
question_count: external_exports.string().optional().default("8").describe("Number of questions (default: 8)"),
|
|
4527
4616
|
audience: external_exports.string().optional().describe("Target audience (e.g. 'children aged 5-8', 'university students', 'general')"),
|
|
4528
|
-
|
|
4617
|
+
...mediaStyleArg
|
|
4529
4618
|
}
|
|
4530
4619
|
},
|
|
4531
4620
|
async (rawArgs) => {
|
|
@@ -4538,7 +4627,7 @@ Outcome categories: ${args.categories}` : "";
|
|
|
4538
4627
|
role: "user",
|
|
4539
4628
|
content: {
|
|
4540
4629
|
type: "text",
|
|
4541
|
-
text: `I want to create a comprehension quiz based on a YouTube video. ${args.question_count ?? 8} questions
|
|
4630
|
+
text: `I want to create a comprehension quiz based on a YouTube video. ${args.question_count ?? 8} questions${styleNote(args)}.${urlNote}${audienceNote}`
|
|
4542
4631
|
}
|
|
4543
4632
|
},
|
|
4544
4633
|
resourceLink("guide-quiz", "clipform://guides/quiz", "Quiz Writing Guide"),
|
|
@@ -4547,14 +4636,14 @@ Outcome categories: ${args.categories}` : "";
|
|
|
4547
4636
|
role: "assistant",
|
|
4548
4637
|
content: {
|
|
4549
4638
|
type: "text",
|
|
4550
|
-
text: await getWorkflowText("quiz", args, "comprehension")
|
|
4639
|
+
text: await getWorkflowText("quiz", args, "comprehension", caps)
|
|
4551
4640
|
}
|
|
4552
4641
|
}
|
|
4553
4642
|
]
|
|
4554
4643
|
};
|
|
4555
4644
|
}
|
|
4556
4645
|
);
|
|
4557
|
-
server.registerPrompt(
|
|
4646
|
+
if (caps.media) server.registerPrompt(
|
|
4558
4647
|
"create-composition-quiz",
|
|
4559
4648
|
{
|
|
4560
4649
|
title: "Create a Composition Quiz",
|
|
@@ -4581,7 +4670,7 @@ Outcome categories: ${args.categories}` : "";
|
|
|
4581
4670
|
role: "assistant",
|
|
4582
4671
|
content: {
|
|
4583
4672
|
type: "text",
|
|
4584
|
-
text: await getWorkflowText("quiz", args, "composition")
|
|
4673
|
+
text: await getWorkflowText("quiz", args, "composition", caps)
|
|
4585
4674
|
}
|
|
4586
4675
|
}
|
|
4587
4676
|
]
|
|
@@ -4614,7 +4703,7 @@ Outcome categories: ${args.categories}` : "";
|
|
|
4614
4703
|
description: "Build a video testimonial collection form - capture authentic customer stories on camera",
|
|
4615
4704
|
argsSchema: {
|
|
4616
4705
|
use_case: external_exports.string().optional().describe("What stories you're collecting (e.g. 'customer success', 'product review', 'case study')"),
|
|
4617
|
-
|
|
4706
|
+
...mediaStyleArg
|
|
4618
4707
|
}
|
|
4619
4708
|
},
|
|
4620
4709
|
async (args) => ({
|
|
@@ -4631,7 +4720,7 @@ Outcome categories: ${args.categories}` : "";
|
|
|
4631
4720
|
role: "assistant",
|
|
4632
4721
|
content: {
|
|
4633
4722
|
type: "text",
|
|
4634
|
-
text: await getWorkflowText("testimonial", args)
|
|
4723
|
+
text: await getWorkflowText("testimonial", args, void 0, caps)
|
|
4635
4724
|
}
|
|
4636
4725
|
}
|
|
4637
4726
|
]
|
|
@@ -4660,7 +4749,7 @@ Outcome categories: ${args.categories}` : "";
|
|
|
4660
4749
|
role: "assistant",
|
|
4661
4750
|
content: {
|
|
4662
4751
|
type: "text",
|
|
4663
|
-
text: await getWorkflowText("application", args)
|
|
4752
|
+
text: await getWorkflowText("application", args, void 0, caps)
|
|
4664
4753
|
}
|
|
4665
4754
|
}
|
|
4666
4755
|
]
|
|
@@ -4690,7 +4779,66 @@ Outcome categories: ${args.categories}` : "";
|
|
|
4690
4779
|
role: "assistant",
|
|
4691
4780
|
content: {
|
|
4692
4781
|
type: "text",
|
|
4693
|
-
text: await getWorkflowText("booking", args)
|
|
4782
|
+
text: await getWorkflowText("booking", args, void 0, caps)
|
|
4783
|
+
}
|
|
4784
|
+
}
|
|
4785
|
+
]
|
|
4786
|
+
})
|
|
4787
|
+
);
|
|
4788
|
+
server.registerPrompt(
|
|
4789
|
+
"create-intake",
|
|
4790
|
+
{
|
|
4791
|
+
title: "Create a Client Intake Form",
|
|
4792
|
+
description: "Build a warm client intake or onboarding form - capture contact details and what the client needs",
|
|
4793
|
+
argsSchema: {
|
|
4794
|
+
use_case: external_exports.string().optional().describe("What kind of business or service (e.g. 'massage', 'coaching', 'personal training', 'agency')"),
|
|
4795
|
+
response_format: external_exports.enum(["video", "audio", "text", "all"]).optional().describe("How people answer the open question (default: all)")
|
|
4796
|
+
}
|
|
4797
|
+
},
|
|
4798
|
+
async (args) => ({
|
|
4799
|
+
messages: [
|
|
4800
|
+
{
|
|
4801
|
+
role: "user",
|
|
4802
|
+
content: {
|
|
4803
|
+
type: "text",
|
|
4804
|
+
text: `I want to create a client intake form${args.use_case ? ` for a ${args.use_case} business` : ""}.`
|
|
4805
|
+
}
|
|
4806
|
+
},
|
|
4807
|
+
resourceLink("guide-intake", "clipform://guides/intake", "Client Intake & Onboarding Guide"),
|
|
4808
|
+
{
|
|
4809
|
+
role: "assistant",
|
|
4810
|
+
content: {
|
|
4811
|
+
type: "text",
|
|
4812
|
+
text: await getWorkflowText("intake", args, void 0, caps)
|
|
4813
|
+
}
|
|
4814
|
+
}
|
|
4815
|
+
]
|
|
4816
|
+
})
|
|
4817
|
+
);
|
|
4818
|
+
server.registerPrompt(
|
|
4819
|
+
"create-lead-capture",
|
|
4820
|
+
{
|
|
4821
|
+
title: "Create a Lead Capture Form",
|
|
4822
|
+
description: "Build a short lead capture or enquiry form - turn interest into a contact with minimal friction",
|
|
4823
|
+
argsSchema: {
|
|
4824
|
+
use_case: external_exports.string().optional().describe("What you're capturing leads for (e.g. 'a service', 'a product', 'a waitlist', 'a quote')")
|
|
4825
|
+
}
|
|
4826
|
+
},
|
|
4827
|
+
async (args) => ({
|
|
4828
|
+
messages: [
|
|
4829
|
+
{
|
|
4830
|
+
role: "user",
|
|
4831
|
+
content: {
|
|
4832
|
+
type: "text",
|
|
4833
|
+
text: `I want to create a lead capture form${args.use_case ? ` for ${args.use_case}` : ""}.`
|
|
4834
|
+
}
|
|
4835
|
+
},
|
|
4836
|
+
resourceLink("guide-lead-capture", "clipform://guides/lead-capture", "Lead Capture Guide"),
|
|
4837
|
+
{
|
|
4838
|
+
role: "assistant",
|
|
4839
|
+
content: {
|
|
4840
|
+
type: "text",
|
|
4841
|
+
text: await getWorkflowText("lead-capture", args, void 0, caps)
|
|
4694
4842
|
}
|
|
4695
4843
|
}
|
|
4696
4844
|
]
|
|
@@ -4708,4 +4856,4 @@ export {
|
|
|
4708
4856
|
getWorkflowText,
|
|
4709
4857
|
registerPrompts
|
|
4710
4858
|
};
|
|
4711
|
-
//# sourceMappingURL=chunk-
|
|
4859
|
+
//# sourceMappingURL=chunk-QZO6MGNN.js.map
|