For independent developers, automation engineers, and AI agent creators, building advanced multi-model workflows has historically forced a frustrating compromise. Standard no-code prompt bots cannot handle branching logic, algorithmic data cleaning, or custom calculations. Conversely, building a custom Server Bot requires provisioning a cloud environment, configuring FastAPI webhooks, managing domain certificates, and footing ongoing hosting bills just to keep an idle container alive.
Poe solved this architectural friction by introducing Script Bots—a native, serverless execution environment that runs Python 3.11 directly on Poe's cloud infrastructure. With Script Bots, developers can orchestrate frontier models, execute deterministic Python logic, handle file attachments, and stream rich responses to users with zero external servers and zero infrastructure overhead.
At 365Finds, our assessment is straightforward: for more than 90% of autonomous agent prototypes, multi-model evaluation pipelines, and document-processing workflows, running FastAPI Server Bots on external cloud providers is now unnecessary technical and financial overhead. Unless your workflow requires a persistent database inside a private enterprise VPC or specialized GPU computing, Poe Script Bots are the superior deployment target.
Architectural Comparison: Where Script Bots Stand in the Poe Ecosystem
Poe offers four distinct bot architectures. Understanding their architectural boundaries ensures you choose the right abstraction level for your application:
| Bot Architecture | Hosting & Infrastructure | Execution Runtime | Model Orchestration Capability | Local Libraries & Compute | Upfront & Operational Cost |
|---|---|---|---|---|---|
| Prompt Bot | Fully hosted by Poe | Declarative System Prompt | Single model only; no dynamic branching | None; plain text prompt engineering | Zero infra cost; runs on Poe user points |
| Script Bot | Fully hosted by Poe (Sandboxed) | Native Python 3.11.14 (0.5 vCPU / 1.6 GB RAM) | Arbitrary multi-model cascading and parallel queries (poe.call, poe.parallel) | Full Python standard library plus pre-installed scientific, parsing, and media stacks | Zero hosting cost; model inference points absorbed by Poe platform |
| Server Bot | Self-hosted by developer (Modal, Render, AWS, VPS) | External web server running fastapi-poe | Full programmatic freedom via external webhooks | Full control over hardware, local databases, and custom container images | Developer pays recurring cloud hosting and infrastructure maintenance |
| Canvas App | Client-side execution in Poe UI | Single-page HTML / JavaScript web app | Bot queries via window.Poe Embed API | Browser JavaScript only; no backend Python runtime | Zero hosting cost; restricted to client-side DOM execution |
For developers who need programmatic control over logic, data manipulation, and multi-model synthesis without managing server uptime, Script Bots occupy the sweet spot between declarative Prompt Bots and self-hosted Server Bots.
Sandboxed Runtime Specifications and Constraints
Script Bots execute inside isolated, secure Linux containers with deterministic resource boundaries:
- Python Version: Python 3.11.14 (x86_64 architecture).
- Compute & Memory: 0.5 CPU core and 1.6 GB RAM (shared between memory operations and ephemeral disk storage).
- Execution Timeout: Up to 1 hour per run, allowing long-running multi-step data pipelines and multi-model consensus chains.
- State Ephemerality: Containers are stateless between turns. Each incoming user message triggers a clean container run. Session history must be accessed through
poe.Chator stored conversationally. - Network Privacy Shields:
- Full Shield (Default): Outbound internet access is completely blocked. The script communicates exclusively with the Poe ecosystem via
poe.callor by pulling cached assets from the allowlisted Poe CDN. This mode offers maximum privacy and instant execution without user permission prompts. - Half Shield: Enables direct external outbound HTTP requests (e.g., using
requestsorhttpxto access third-party REST APIs or scrape public web pages). To activate Half Shield, add# poe: privacy_shield=halfas the very first line of your script. Poe presents an upfront authorization prompt to the user before running network calls.
- Full Shield (Default): Outbound internet access is completely blocked. The script communicates exclusively with the Poe ecosystem via
Pre-Installed Package Ecosystem
Unlike standard serverless functions that force you to bundle wheel files or build Docker containers, Poe provides a comprehensive standard toolkit out of the box:
- Web & Scraping:
requests,httpx,aiohttp,beautifulsoup4,lxml - Data Science & Analytics:
numpy,pandas,scipy - Natural Language Processing:
spacy,nltk,textblob - Computer Vision & Imaging:
Pillow,opencv-python,pillow_heif,imageio - Visualization:
matplotlib,seaborn,plotly - Document & File Parsing:
PyPDF2,PyMuPDF(fitz),pdfplumber,python-docx,python-pptx,openpyxl,xlsxwriter - Audio & Media:
pydub,librosa,soundfile,audioread - System & Utility:
pydantic,pyyaml,regex,rich,tabulate,cryptography,faker
The Poe Python Execution Model
When a Script Bot executes, the Poe platform automatically injects the poe namespace alongside low-level fastapi_poe types. Developers write idiomatic Python code structured around distinct lifecycle phases:
[Bot Creation / Edit Time]
│
▼
poe.update_settings() ──► Registers Introduction Message, UI Parameter Controls
│
[Runtime Chat Execution]
│
▼
if __name__ == "__main__":
├── poe.query (Inspect user input, attachments, parameters)
├── poe.parallel() / call() (Query frontier models across providers)
├── Deterministic Python (Data cleaning, regex, calculations)
├── poe.start_message() (Stream live feedback to chat UI)
└── poe.Attachment (Return generated files, reports, charts)
Key SDK Primitives
poe.query: Represents the current incoming user message (poe.Message). Provides.text,.parameters(values configured via UI controls), and.attachments(uploaded files or images).poe.default_chat&print(): Writing topoe.default_chator calling Python's nativeprint()automatically streams text to the Poe user interface.poe.call(bot_name, *prompts, ...): Synchronously queries any bot available on Poe (e.g.,"GPT-5.4","Claude-Sonnet-4.6","Gemini-2.5-Flash","FLUX-schnell"). It supports passing messages, strings, or whole chats, and returns apoe.Chatobject containing the response.poe.stream(bot_name, *prompts, ...): Yields partial response tokens as an iterator for custom chunk-level stream processing.poe.parallel(*tasks): Concurrently executes multiple callables using an internal 21-thread worker pool, enabling parallel queries to multiple models without manual asyncio boilerplate.poe.Attachment: Wraps raw bytes (contents=b"...") or URLs into download cards or inline markdown images.poe.BotError: Raisingpoe.BotError("Clean error message")terminates execution gracefully and displays a formatted notification to the user.
Step-by-Step Implementation: Building a Multi-Model Analyst Bot
To demonstrate how to build an end-to-end multi-model pipeline, we will create an Executive Consensus Analyst. This bot:
- Exposes interactive UI Parameter Controls so users can configure analysis depth and sector focus.
- Queries both
Claude-Sonnet-4.6andGPT-5.4in parallel to gather diverse strategic viewpoints. - Uses native Python logic to structure and compare arguments.
- Synthesizes a unified executive summary using
Gemini-2.5-Flash. - Generates a formatted summary text and an optional analytical CSV report attached directly to the message.
Production Script (bot.py)
# poe: privacy_shield=full
import csv
import io
import poe
from fastapi_poe.types import (
Dropdown,
ParameterControls,
Section,
SettingsResponse,
Slider,
)
# 1. Bot Settings & Interactive UI Controls
# This block executes during bot creation and configuration updates.
poe.update_settings(
SettingsResponse(
introduction_message=(
"Welcome to the Executive Consensus Analyst. I query Anthropic Claude "
"and OpenAI GPT in parallel, identify consensus and divergence, and "
"synthesize an actionable decision briefing."
),
parameter_controls=ParameterControls(
sections=[
Section(
name="Analysis Configuration",
controls=[
Slider(
label="Depth & Rigor",
parameter_name="rigor_level",
default_value=70,
min_value=20,
max_value=100,
step=10,
),
Dropdown(
label="Analytical Lens",
parameter_name="focus_lens",
default_value="commercial",
options=[
{"label": "Commercial & ROI", "value": "commercial"},
{"label": "Technical Architecture", "value": "technical"},
{"label": "Risk & Compliance", "value": "compliance"},
],
),
],
)
]
),
)
)
# 2. Runtime Chat Handling
# All per-message inference logic lives inside this entrypoint.
if __name__ == "__main__":
user_prompt = poe.query.text.strip()
if not user_prompt:
raise poe.BotError("Please submit a business problem or technical dilemma to evaluate.")
# Retrieve user-selected parameter values
rigor = poe.query.parameters.get("rigor_level", 70)
lens = poe.query.parameters.get("focus_lens", "commercial")
# Inform user of pipeline progress
with poe.start_message() as status_msg:
status_msg.write(f"Initiating dual-model consensus analysis (Lens: **{lens.upper()}**, Rigor: **{rigor}/100**)...\n")
# Define tasks for parallel execution
claude_prompt = (
f"You are a strategic advisor evaluating this scenario under a {lens} focus. "
f"Detail the top 3 opportunities and top 3 liabilities. Scenario: {user_prompt}"
)
gpt_prompt = (
f"You are an operational architect evaluating this scenario under a {lens} focus. "
f"Detail the immediate tactical requirements and fatal failure modes. Scenario: {user_prompt}"
)
def query_claude():
return poe.call("Claude-Sonnet-4.6", claude_prompt).text
def query_gpt():
return poe.call("GPT-5.4", gpt_prompt).text
# Execute both frontier queries concurrently across Poe's infrastructure
claude_response, gpt_response = poe.parallel(query_claude, query_gpt)
# Inform user of synthesis phase
with poe.start_message() as status_msg:
status_msg.write("Synthesizing viewpoints and resolving model disagreements...\n")
# Synthesize the final decision briefing using a high-throughput model
synthesis_prompt = (
f"Analyze these two distinct expert viewpoints on '{user_prompt}':\n\n"
f"### Viewpoint A (Claude Sonnet):\n{claude_response}\n\n"
f"### Viewpoint B (GPT-5.4):\n{gpt_response}\n\n"
"Produce an Executive Decision Briefing with three structured sections:\n"
"1. Points of Complete Consensus\n"
"2. Irreconcilable Divergences & Strategic Trade-offs\n"
"3. Final 365Finds Recommended Action Plan"
)
synthesis_chat = poe.call("Gemini-2.5-Flash", synthesis_prompt)
# Deliver final synthesis directly to the conversation
print(synthesis_chat.text)
# Optional: Generate and attach a structured CSV summary for data export
csv_buffer = io.StringIO()
writer = csv.writer(csv_buffer)
writer.writerow(["Model", "Evaluation Focus", "Raw Perspective Excerpt"])
writer.writerow(["Claude-Sonnet-4.6", lens, claude_response[:300].replace("\n", " ")])
writer.writerow(["GPT-5.4", lens, gpt_response[:300].replace("\n", " ")])
report_attachment = poe.Attachment(
name="consensus_audit_log.csv",
contents=csv_buffer.getvalue().encode("utf-8"),
content_type="text/csv",
)
with poe.start_message() as final_msg:
final_msg.attach_file(
name="consensus_audit_log.csv",
contents=csv_buffer.getvalue().encode("utf-8"),
content_type="text/csv",
)
final_msg.write("\n\n*Audit log generated and attached above.*")
The Build, Test, and Deployment Lifecycle
Developers have two collaborative workflows to create and iterate on Script Bots:
Method A: Conversational Vibe-Coding Method B: Manual Code Editor
(Chat with @Script-Bot-Creator) (Navigate to poe.com/Code-Editor)
│ │
▼ ▼
Natural language description Direct Python 3.11 writing
│ │
└───────────────┬─────────────────────────┘
│
▼
Click "Test" Button
(Spins up private sandbox)
│
▼
Inspect Live Chat Run
│
▼
Click "Publish Bot"
(Set handle, avatar, monetization, remix rights)
- Conversational Scaffolding via
@Script-Bot-Creator:- Go to poe.com and click Create in the left sidebar.
- Select Script Bot. By default, this opens a session with Script-Bot-Creator, an agent specialized in generating Poe Python scripts.
- Provide high-level instructions (e.g., "Build a bot that translates uploaded PDF documents into 3 languages in parallel using Claude Sonnet and packages them into a ZIP file"). Script-Bot-Creator writes the initial implementation and exposes a Test button.
- Direct Control via
poe.com/Code-Editor:- Developers seeking manual precision can click Edit Code on any generated script or visit
poe.com/Code-Editordirectly. - Code changes can be tested immediately in a private sandbox that mirrors production conditions.
- Developers seeking manual precision can click Edit Code on any generated script or visit
- Publishing & Distribution:
- Once validated in the test chat, clicking Publish Bot commits the script to Poe's production registry.
- You can configure the bot's slug (
@YourBotHandle), avatar, bio, and community remixing permissions. If remixing is enabled, other creators can clone your workflow as a baseline template.
Cost Structure and Creator Monetization
A primary differentiator of Poe Script Bots is how compute and inference costs are handled:
- Zero Developer Infrastructure Costs:
- Poe hosts the container runtime for free. There are no AWS EC2 bills, Cloudflare Worker invocation fees, or container cold-start penalties.
- Inference Point Routing:
- When your Script Bot calls external frontier models via
poe.call()orpoe.stream(), Poe automatically deducts the required compute points from the querying user's balance, not the developer's account. - This eliminates the financial risk of sudden viral adoption bankrupting an indie creator with massive OpenAI or Anthropic API invoices.
- When your Script Bot calls external frontier models via
- Creator Monetization Program:
- Bot creators can set custom per-message prices or participate in Poe's revenue-sharing model. When users subscribe to Poe or consume points interacting with your bot, you receive monthly payouts based on platform engagement.
Critical Boundaries: When to Choose Server Bots Instead
While Script Bots replace external infrastructure for most agentic workflows, developers must recognize their architectural limits:
| Requirement / Constraint | Script Bot Viability | Recommended Alternative |
|---|---|---|
| Multi-model reasoning & chaining | Supported natively (poe.call, poe.parallel) | Script Bot |
| Data parsing, PDF/Excel, and Matplotlib | Supported natively via pre-installed packages | Script Bot |
| Sub-1-hour execution pipelines | Supported natively (1-hour timeout limit) | Script Bot |
| Persistent cross-turn local storage | Not supported (container disk resets every turn) | Server Bot with PostgreSQL / Redis |
| Proprietary enterprise VPC access | Not supported (sandbox cannot join private subnets) | Server Bot hosted inside internal corporate VPC |
| Custom compiled binaries or C-extensions | Restricted to pre-installed packages | Server Bot with custom Dockerfile |
| High-concurrency GPU model weights | Restricted to 0.5 CPU / 1.6 GB RAM | Self-hosted Server Bot on GPU cloud (Modal, RunPod) |
365Finds Institutional Evaluation & Recommendations
- Adopt Script Bots as the Default Prototyping Pipeline: Do not spend engineering cycles setting up FastAPI servers, Dockerfiles, and webhook tunnels on Modal or Render during early product exploration. Write your workflow logic as a Script Bot first. It delivers immediate cross-platform distribution across Web, iOS, Android, macOS, and Windows.
- Leverage
poe.parallel()for Multi-Perspective Workflows: The greatest strategic advantage of Poe is unified access to models from OpenAI, Anthropic, Google, and open-source labs under one authentication layer. Usepoe.parallel()to query multiple frontier models concurrently. Combining distinct model architectures mitigates single-model bias and drastically improves output reliability. - Keep Privacy Shields on Full Whenever Possible: Unless you explicitly require third-party web scraping, keep your script in full-shield mode. It avoids consent friction for users and guarantees zero data leakage from your execution container.
- Graduate to Server Bots Only for Enterprise State Requirements: Only migrate to a self-hosted Server Bot if you require state persistence that cannot live in message context, or if you must interface with proprietary internal microservices hidden behind corporate firewalls.
Poe Script Bots fundamentally lower the barrier to deploying intelligent, multi-step agent systems. By pairing a managed Python 3.11 runtime with direct access to top-tier LLM and media models, developers can focus 100% of their effort on orchestration logic and prompt engineering rather than cloud plumbing.