def interactive_input_block(
    initial_value: str,
    label: str,
    placeholder: str,
    action_id: str,
    multiline: bool,
):
    """
    Generate interactive input block.

    Args:
        initial_value (str): Value to prefill field.
        label (str): Label above field.
        placeholder (str): Placeholder when field is empty.
        action_id (str): Action identifier to assign to field.
        multiline (bool): Multiline flag.

    Returns:
        dict: Interactive view block representing desired input field.

    """
    block = {
        "dispatch_action": True,
        "type": "input",
        "element": {
            "type": "plain_text_input",
            "action_id": action_id,
            "multiline": multiline,
            "placeholder": {
                "type": "plain_text",
                "text": placeholder,
            },
            "initial_value": initial_value,
            "dispatch_action_config": {
                "trigger_actions_on": [
                    "on_character_entered",
                ],
            },
        },
        "label": {
            "type": "plain_text",
            "text": label,
            "emoji": True,
        },
    }
    return block