|
334 | 334 | "```\n",
|
335 | 335 | "# Personality & Tone\n",
|
336 | 336 | "## Personality\n",
|
337 |
| - "Friendly, calm and approachable expert customer service assistant.\n", |
| 337 | + "- Friendly, calm and approachable expert customer service assistant.\n", |
338 | 338 | "\n",
|
339 | 339 | "## Tone\n",
|
340 |
| - "Warm, concise, confident, never fawning.\n", |
| 340 | + "- Warm, concise, confident, never fawning.\n", |
341 | 341 | "\n",
|
342 | 342 | "## Length\n",
|
343 | 343 | "2–3 sentences per turn.\n",
|
|
362 | 362 | },
|
363 | 363 | {
|
364 | 364 | "cell_type": "code",
|
365 |
| - "execution_count": null, |
| 365 | + "execution_count": 3, |
366 | 366 | "id": "6dce17d5",
|
367 | 367 | "metadata": {},
|
368 | 368 | "outputs": [
|
|
380 | 380 | "<IPython.lib.display.Audio object>"
|
381 | 381 | ]
|
382 | 382 | },
|
383 |
| - "execution_count": 4, |
| 383 | + "execution_count": 3, |
384 | 384 | "metadata": {},
|
385 | 385 | "output_type": "execute_result"
|
386 | 386 | }
|
387 | 387 | ],
|
388 | 388 | "source": [
|
389 |
| - "Audio(\"/Users/minh.hoque/work/github/openai-cookbook/examples/data/audio/multi-emotion.wav\")" |
| 389 | + "Audio(\"./data/audio/multi-emotion.wav\")" |
390 | 390 | ]
|
391 | 391 | },
|
392 | 392 | {
|
|
419 | 419 | "```\n",
|
420 | 420 | "# Personality & Tone\n",
|
421 | 421 | "## Personality\n",
|
422 |
| - "Friendly, calm and approachable expert customer service assistant.\n", |
| 422 | + "- Friendly, calm and approachable expert customer service assistant.\n", |
423 | 423 | "\n",
|
424 | 424 | "## Tone\n",
|
425 |
| - "Warm, concise, confident, never fawning.\n", |
| 425 | + "- Warm, concise, confident, never fawning.\n", |
426 | 426 | "\n",
|
427 | 427 | "## Length\n",
|
428 |
| - "2–3 sentences per turn.\n", |
| 428 | + "- 2–3 sentences per turn.\n", |
429 | 429 | "\n",
|
430 | 430 | "## Pacing\n",
|
431 | 431 | "- Deliver your audio response fast, but do not sound rushed.\n",
|
|
537 | 537 | "```\n",
|
538 | 538 | "# Personality & Tone\n",
|
539 | 539 | "## Personality\n",
|
540 |
| - "Friendly, calm and approachable expert customer service assistant.\n", |
| 540 | + "- Friendly, calm and approachable expert customer service assistant.\n", |
541 | 541 | "\n",
|
542 | 542 | "## Tone\n",
|
543 |
| - "Warm, concise, confident, never fawning.\n", |
| 543 | + "- Warm, concise, confident, never fawning.\n", |
544 | 544 | "\n",
|
545 | 545 | "## Length\n",
|
546 |
| - "2–3 sentences per turn.\n", |
| 546 | + "- 2–3 sentences per turn.\n", |
547 | 547 | "\n",
|
548 | 548 | "## Language\n",
|
549 | 549 | "- The conversation will be only in English.\n",
|
|
574 | 574 | "### Example (model teaches a language)\n",
|
575 | 575 | "```\n",
|
576 | 576 | "# Role & Objective\n",
|
577 |
| - "You are a friendly, knowledgeable voice tutor for French learners. \n", |
578 |
| - "Your goal is to help the user improve their French speaking and listening skills through engaging conversation and clear explanations. \n", |
579 |
| - "Balance immersive French practice with supportive English guidance to ensure understanding and progress.\n", |
| 577 | + "- You are a friendly, knowledgeable voice tutor for French learners. \n", |
| 578 | + "- Your goal is to help the user improve their French speaking and listening skills through engaging conversation and clear explanations. \n", |
| 579 | + "- Balance immersive French practice with supportive English guidance to ensure understanding and progress.\n", |
580 | 580 | "\n",
|
581 | 581 | "# Personality & Tone\n",
|
582 | 582 | "## Personality\n",
|
583 |
| - "Friendly, calm and approachable expert voice tutor.\n", |
| 583 | + "- Friendly, calm and approachable expert customer service assistant.\n", |
584 | 584 | "\n",
|
585 | 585 | "## Tone\n",
|
586 |
| - "Warm, concise, confident, never fawning.\n", |
| 586 | + "- Warm, concise, confident, never fawning.\n", |
587 | 587 | "\n",
|
588 | 588 | "## Length\n",
|
589 |
| - "2–3 sentences per turn.\n", |
| 589 | + "- 2–3 sentences per turn.\n", |
590 | 590 | "\n",
|
591 | 591 | "## Language\n",
|
592 | 592 | "### Explanations\n",
|
|
635 | 635 | "```\n",
|
636 | 636 | "# Personality & Tone\n",
|
637 | 637 | "## Personality\n",
|
638 |
| - "Friendly, calm and approachable expert customer service assistant.\n", |
| 638 | + "- Friendly, calm and approachable expert customer service assistant.\n", |
639 | 639 | "\n",
|
640 | 640 | "## Tone\n",
|
641 |
| - "Warm, concise, confident, never fawning.\n", |
| 641 | + "- Warm, concise, confident, never fawning.\n", |
642 | 642 | "\n",
|
643 | 643 | "## Length\n",
|
644 |
| - "2–3 sentences per turn.\n", |
| 644 | + "- 2–3 sentences per turn.\n", |
645 | 645 | "\n",
|
646 | 646 | "## Language\n",
|
647 | 647 | "- The conversation will be only in English.\n",
|
|
807 | 807 | "id": "60708efd",
|
808 | 808 | "metadata": {},
|
809 | 809 | "source": [
|
810 |
| - "### Example\n", |
| 810 | + "### Example (general instruction section)\n", |
811 | 811 | "```\n",
|
812 | 812 | "# Instructions/Rules\n",
|
813 | 813 | "- When reading numbers or codes, speak each character separately, separated by hyphens (e.g., 4-1-5). \n",
|
|
822 | 822 | "source": [
|
823 | 823 | "*Tip: If you are following a conversation flow prompting strategy, you can specify which conversation state needs to apply the alpha-numeric pronunciations instruction.*\n",
|
824 | 824 | "\n",
|
825 |
| - "### Example \n", |
| 825 | + "### Example (instruction in conversation state)\n", |
826 | 826 | "*(taken from the conversation flow of the prompt of our [openai-realtime-agents](https://github.com/openai/openai-realtime-agents/blob/main/src/app/agentConfigs/customerServiceRetail/authentication.ts))*\n",
|
827 | 827 | "\n",
|
828 | 828 | "```txt\n",
|
|
1214 | 1214 | "id": "30ccc1d9",
|
1215 | 1215 | "metadata": {},
|
1216 | 1216 | "source": [
|
1217 |
| - "*Tip: If a tool call can fail unpredictably, add clear failure-handling instructions so the model responds gracefully.*" |
| 1217 | + "*Tip: If you notice the model is jumping too quickly to call a tool, try softening the wording. For example, swapping out stronger terms like “proactive” with something gentler can help guide the model to take a calmer, less eager approach.*" |
1218 | 1218 | ]
|
1219 | 1219 | },
|
1220 | 1220 | {
|
|
1269 | 1269 | "id": "24579f54",
|
1270 | 1270 | "metadata": {},
|
1271 | 1271 | "source": [
|
1272 |
| - "*Tip: If your tool call can fail in unpredictablr ways, try adding instructions on how to handle tool call outputs failures so taht the model can behave*" |
| 1272 | + "*Tip: If a tool call can fail unpredictably, add clear failure-handling instructions so the model responds gracefully.*" |
1273 | 1273 | ]
|
1274 | 1274 | },
|
1275 | 1275 | {
|
|
0 commit comments