Automaton v0.1.1 Automaton.Conversation View Source

Module to manage Automaton conversations.

Link to this section Summary

Functions

Represents a conversation between a user and a bot

Adds a message to an existing conversation

Get a conversation and it’s messages

Get the last message from a conversation

Ends a conversation

Link to this section Functions

Link to this function %Automaton.Conversation{} View Source (struct)

Represents a conversation between a user and a bot.

Link to this function add_message(session_id, message) View Source

Adds a message to an existing conversation

Get a conversation and it’s messages

Link to this function last_message(session_id) View Source

Get the last message from a conversation

Ends a conversation