def get_story_element_text_format(element_json):
    """Helper function to Stories Parser, for converting story element from from json format to text"""
    if element_json['type'] == 'action':
        return element_json['name']
    elif element_json['type'] == 'slot':
        return 'slot{{"{slot_name}" : "{slot_value}"}}'.format(slot_name=element_json['name'],
                                                               slot_value=element_json['value'])
    elif element_json['type'] == 'form':
        return 'form{{"name": "{form_name}"}}'.format(form_name=element_json['name'])
    else:
        return False