Parlyr
Conversational NLP — natural language to extraction plans
1 min read
Parlyr converts natural language into extraction plans and supports interactive chat sessions. Use it when you know what data you want but not which selectors to use.
For complex multi-step workflows, consider NEXUS instead. See the Parlyr vs NEXUS guide for a comparison.
parse
result = client.parlyr.parse(
"Extract all product names, prices, and ratings",
)
print(result.intent, result.confidence, result.detected_url)
chat
response = client.parlyr.chat(
session_id="my-session",
message="Find all prices on this page",
)
print(response.response, response.session_id)
chatStream (SSE)
# Async only — use AsyncKloakd
async with client.parlyr.chat_stream(session_id="sess-abc", message="Refine") as events:
async for event in events:
print(event.event, event.data)
for await (const event of client.parlyr.chatStream({ sessionId: 'sess-abc', message: 'Refine' })) {
console.log(event.event, event.data);
}
delete_session
client.parlyr.delete_session("sess-abc123")
Next steps
- Parlyr vs NEXUS guide — when to use each AI module
- Advanced modules — module overview
- Choosing an approach — decision tree
Was this page helpful?
