<commit_before># Creating a new Smart Answer

This walks through the basics of creating a new Smart Answer.

## 1. Create a new skeleton flow

Start by creating a new file to hold the logic of our flow:

```bash
$ touch lib/smart_answer_flows/example-smart-answer.rb
```

Open the new file in your editor and copy/paste this skeleton flow:

```ruby
module SmartAnswer
  class ExampleSmartAnswerFlow < Flow
    def define
      name 'example-smart-answer'

      value_question :question_1? do
        next_node do
          outcome :outcome_1
        end:
      end

      outcome :outcome_1
    end
  end
end
```<commit_msg>Fix syntax error in Creating a new flow code example<commit_after># Creating a new Smart Answer

This walks through the basics of creating a new Smart Answer.

## 1. Create a new skeleton flow

Start by creating a new file to hold the logic of our flow:

```bash
$ touch lib/smart_answer_flows/example-smart-answer.rb
```

Open the new file in your editor and copy/paste this skeleton flow:

```ruby
module SmartAnswer
  class ExampleSmartAnswerFlow < Flow
    def define
      name 'example-smart-answer'

      value_question :question_1? do
        next_node do
          outcome :outcome_1
        end
      end

      outcome :outcome_1
    end
  end
end
```
{'fraction_non_alphanumeric': 0.059782608695652176, 'fraction_numerical': 0.006211180124223602, 'mean_word_length': 2.9298780487804876, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2957120', 'n_tokens_mistral': 398, 'n_tokens_neox': 366, 'n_words': 159}