Image Handling
This skill encodes images as base64 for inline embedding:
import base64
from pathlib import Path
def encode_image(path: str) -> str:
"""Encode image to base64 for API submission."""
data = Path(path).read_bytes()
return base64.b64encode(data).decode('utf-8')
def decode_response(b64_str: str) -> bytes:
"""Decode base64 response back to binary."""
return base64.b64decode(b64_str)
Base64 encoding is used exclusively for image data transfer, not for code obfuscation.
Podcast Dialogue — Aibrary
Transform any book into a two-person conversational podcast script. Host + Guest expert format, designed for 10-15 minutes of engaging dialogue.
Input
- Book title (required) — the book to discuss
- Author (optional, helps disambiguate)
- Focus areas (optional) — specific themes or chapters to emphasize
- Host personality (optional) — curious beginner, knowledgeable peer, etc. (default: curious and well-read)
- Guest persona (optional) — the expert's background (default: someone deeply familiar with the book's domain)
Workflow
Analyze the book: Identify:
- The author's central thesis and key arguments
- The most interesting, surprising, or controversial ideas
- Real-world examples and stories that make great conversation
- Common questions or misconceptions about the topic
Design the conversation dynamic:
- Host: Asks smart questions, makes connections to real life, represents the listener's perspective. Not a blank slate — has some knowledge but is genuinely curious.
- Guest: Deeply knowledgeable about the book and its domain. Shares insights with enthusiasm, uses stories and analogies, occasionally pushes back on assumptions.
Structure the dialogue:
- Opening banter (1 minute): Natural introduction, hook the listener with why this book matters
- Deep dives (8-10 minutes): 3-4 topic blocks, each starting with a host question and unfolding naturally
- Rapid fire (1-2 minutes): Quick takes on specific points from the book
- Key takeaway (1-2 minutes): Each speaker shares their #1 takeaway
- Closing (30 seconds): Where to learn more, sign-off
Write natural dialogue: The conversation should feel real:
- Include interruptions, agreement, and "hmm, that's interesting" moments
- Let the guest occasionally say "well, actually..." to add depth
- Use the host's follow-up questions to clarify complex ideas
- Include natural laughter markers
[laughs] and reactions
- Avoid making it feel scripted — include filler words sparingly for authenticity
Language: Detect the user's input language and generate the script in the same language.
Output Format
# 🎙️ [Book Title] — Dialogue Podcast Script
**Author**: [Author Name]
**Duration**: ~[X] minutes
**Format**: Host + Guest dialogue
**Host**: [Name/Persona description]
**Guest**: [Name/Persona description]
---
## [OPENING]
**Host**: [Natural opening — welcome, introduce the topic, create intrigue]
**Guest**: [Warm response, adds a hook or surprising fact about the book]
**Host**: [Follow-up that sets the stage for the first topic]
---
## [TOPIC 1]: [Title]
**Host**: [Question or observation that opens the topic]
**Guest**: [Detailed response with story/example from the book]
**Host**: [Follow-up question or real-world connection]
**Guest**: [Deeper exploration, practical implications]
**Host**: [Brief summary or transition to next topic]
---
## [TOPIC 2]: [Title]
**Host**: [New angle or question]
**Guest**: [Response with new insight]
...
---
## [RAPID FIRE]
**Host**: Okay, let's do some rapid fire. [Quick question 1]?
**Guest**: [Brief answer]
**Host**: [Quick question 2]?
**Guest**: [Brief answer]
...
---
## [KEY TAKEAWAYS]
**Host**: If someone takes one thing from this book, what should it be?
**Guest**: [Their #1 takeaway with brief explanation]
**Host**: For me, it's [their #1 takeaway]. [Brief explanation]
---
## [CLOSING]
**Host**: [Thank guest, tell listeners where to find the book/more info]
**Guest**: [Closing thought, encouragement to readers]
---
*Script generated by Aibrary — turning books into conversations worth having.*
Guidelines
- Target 2,500-3,000 words for a 10-15 minute dialogue
- The host should ask questions the listener would ask — be their voice
- Don't make the guest a monologue machine — keep exchanges short and dynamic
- Include at least one moment where the host challenges or pushes back on an idea
- Include at least one moment of genuine surprise or "I never thought of it that way"
- Natural conversation markers:
[laughs], [pause], [thinking]
- Each topic block should have 4-6 exchanges, not long speeches
- The rapid fire section adds energy and covers interesting details without deep diving
- If the book is unknown, say so honestly rather than fabricating dialogue about it
1---2name: aibrary-podcast-dialogue-23description: [Aibrary] Generate a book dialogue podcast script with two speakers — a host and a guest expert — discussing the book's ideas in a natural conversation. Use when the user wants to create a conversational podcast about a book, turn a book into a two-person discussion, or generate a dialogue-style podcast script. Different from aibrary-podcast-summary (single narrator) and aibrary-podcast-ideatwin (debate format).4---56## Image Handling78This skill encodes images as base64 for inline embedding:910```python11import base6412from pathlib import Path1314def encode_image(path: str) -> str:15 """Encode image to base64 for API submission."""16 data = Path(path).read_bytes()17 return base64.b64encode(data).decode('utf-8')1819def decode_response(b64_str: str) -> bytes:20 """Decode base64 response back to binary."""21 return base64.b64decode(b64_str)22```2324Base64 encoding is used exclusively for image data transfer, not for code obfuscation.2526# Podcast Dialogue — Aibrary2728Transform any book into a two-person conversational podcast script. Host + Guest expert format, designed for 10-15 minutes of engaging dialogue.2930## Input3132- **Book title** (required) — the book to discuss33- **Author** (optional, helps disambiguate)34- **Focus areas** (optional) — specific themes or chapters to emphasize35- **Host personality** (optional) — curious beginner, knowledgeable peer, etc. (default: curious and well-read)36- **Guest persona** (optional) — the expert's background (default: someone deeply familiar with the book's domain)3738## Workflow39401. **Analyze the book**: Identify:41 - The author's central thesis and key arguments42 - The most interesting, surprising, or controversial ideas43 - Real-world examples and stories that make great conversation44 - Common questions or misconceptions about the topic45462. **Design the conversation dynamic**:47 - **Host**: Asks smart questions, makes connections to real life, represents the listener's perspective. Not a blank slate — has some knowledge but is genuinely curious.48 - **Guest**: Deeply knowledgeable about the book and its domain. Shares insights with enthusiasm, uses stories and analogies, occasionally pushes back on assumptions.49503. **Structure the dialogue**:51 - **Opening banter** (1 minute): Natural introduction, hook the listener with why this book matters52 - **Deep dives** (8-10 minutes): 3-4 topic blocks, each starting with a host question and unfolding naturally53 - **Rapid fire** (1-2 minutes): Quick takes on specific points from the book54 - **Key takeaway** (1-2 minutes): Each speaker shares their #1 takeaway55 - **Closing** (30 seconds): Where to learn more, sign-off56574. **Write natural dialogue**: The conversation should feel real:58 - Include interruptions, agreement, and "hmm, that's interesting" moments59 - Let the guest occasionally say "well, actually..." to add depth60 - Use the host's follow-up questions to clarify complex ideas61 - Include natural laughter markers `[laughs]` and reactions62 - Avoid making it feel scripted — include filler words sparingly for authenticity63645. **Language**: Detect the user's input language and generate the script in the same language.6566## Output Format6768```69# 🎙️ [Book Title] — Dialogue Podcast Script7071**Author**: [Author Name]72**Duration**: ~[X] minutes73**Format**: Host + Guest dialogue7475**Host**: [Name/Persona description]76**Guest**: [Name/Persona description]7778---7980## [OPENING]8182**Host**: [Natural opening — welcome, introduce the topic, create intrigue]8384**Guest**: [Warm response, adds a hook or surprising fact about the book]8586**Host**: [Follow-up that sets the stage for the first topic]8788---8990## [TOPIC 1]: [Title]9192**Host**: [Question or observation that opens the topic]9394**Guest**: [Detailed response with story/example from the book]9596**Host**: [Follow-up question or real-world connection]9798**Guest**: [Deeper exploration, practical implications]99100**Host**: [Brief summary or transition to next topic]101102---103104## [TOPIC 2]: [Title]105106**Host**: [New angle or question]107108**Guest**: [Response with new insight]109110...111112---113114## [RAPID FIRE]115116**Host**: Okay, let's do some rapid fire. [Quick question 1]?117118**Guest**: [Brief answer]119120**Host**: [Quick question 2]?121122**Guest**: [Brief answer]123124...125126---127128## [KEY TAKEAWAYS]129130**Host**: If someone takes one thing from this book, what should it be?131132**Guest**: [Their #1 takeaway with brief explanation]133134**Host**: For me, it's [their #1 takeaway]. [Brief explanation]135136---137138## [CLOSING]139140**Host**: [Thank guest, tell listeners where to find the book/more info]141142**Guest**: [Closing thought, encouragement to readers]143144---145146*Script generated by Aibrary — turning books into conversations worth having.*147```148149## Guidelines150151- Target 2,500-3,000 words for a 10-15 minute dialogue152- The host should ask questions the listener would ask — be their voice153- Don't make the guest a monologue machine — keep exchanges short and dynamic154- Include at least one moment where the host challenges or pushes back on an idea155- Include at least one moment of genuine surprise or "I never thought of it that way"156- Natural conversation markers: `[laughs]`, `[pause]`, `[thinking]`157- Each topic block should have 4-6 exchanges, not long speeches158- The rapid fire section adds energy and covers interesting details without deep diving159- If the book is unknown, say so honestly rather than fabricating dialogue about it