from typing import Dict


def extract_params_from_string(string: str) -> Dict:
    """Convert completion string to dictionary of params.

    Args:
        string: Raw text version of action chain

    Returns:
        Dict: Extracted parameters

    Example:
        string: to=>mom ### body=>I Love her ### application=>???
        out: {"recipient": "mom", "body":"I love her", "application": None}
    """
    params = string.strip().split("###")
    out = {}
    for param in params:
        argument, value = param.strip().split("=>")
        out[argument.strip()] = value.strip()
    return out