Skip to content

sms_conversation_workflow

django_spire.ai.sms.intelligence.workflows.sms_conversation_workflow

sms_conversation_workflow

Source code in django_spire/ai/sms/intelligence/workflows/sms_conversation_workflow.py
@recorder_to_html_file('spire_ai_sms_conversation_workflow')
def sms_conversation_workflow(
    request: WSGIRequest, user_input: str, message_history: MessageHistory | None = None, actor: str | None = None
) -> SmsIntel:
    message_intel = chat_workflow(
        request,
        user_input=user_input,
        message_history=message_history,
    )

    return SmsIntel(
        body=message_intel.render_to_str()
    )