# 2.3 Pseudocode Functions

{% tabs %}
{% tab title="✓  INSTRUCTIONS & DELIVERABLE" %}
Create [pseudocode](https://en.wikipedia.org/wiki/Pseudocode) for each programming function your chatbot will need to perform your defined tasks.

Resource:[ Pseudocode on Wikipedia](https://en.wikipedia.org/wiki/Pseudocode)

See the example pseudocode below as a guide. Don't worry about syntax. Pseudocode is meant to describe, in plain english, what you will need the computer to process.

```diff
function: calculate ingredient amounts for recipe    
    - read ingredient amounts for a single serving from database    
    - read number of servings desired by user    
    - multiply number of servings by the single serving amounts    
    - return result
```

**❏ Deliverable**

A document containing each functions pseudocode.
{% endtab %}

{% tab title="★  RUBRIC" %}

| ✓- Below Standard                                                                     | ✓ At Standard                                                                                                                                | ✓+ Above Standard                                                                                                                 |
| ------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| The pseudocode is incomplete and doesn't clearly describe what each function will do. | The pseudocode clearly defines the basic operations of each chatbot function, providing a good template for coding the Javascript functions. | The pseudocode provides a detailed description of each function that thoughtfully considers the logic needed for the programming. |
| {% endtab %}                                                                          |                                                                                                                                              |                                                                                                                                   |
| {% endtabs %}                                                                         |                                                                                                                                              |                                                                                                                                   |

\ <a href="#objective" id="objective"></a>
------------------------------------------


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.idew.org/project-chatbot/project-instructions/2-design-and-build-solution/2.3-pseudocode-functions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
