|
| 1 | +--- |
| 2 | +title: Generating tables |
| 3 | +shortTitle: Generate tables |
| 4 | +intro: '{% data variables.copilot.copilot_chat_short %} can help you create tables to organize information and present it clearly.' |
| 5 | +versions: |
| 6 | + feature: copilot |
| 7 | +complexity: |
| 8 | + - Simple |
| 9 | +octicon: copilot |
| 10 | +category: |
| 11 | + - Communicate effectively |
| 12 | +topics: |
| 13 | + - Copilot |
| 14 | +contentType: tutorials |
| 15 | +--- |
| 16 | + |
| 17 | +{% data variables.copilot.copilot_chat %} can help you create tables for various purposes, such as organizing data, comparing options, or summarizing information. By using tables, you can present information in a clear and structured way that is easy to read and understand. You can ask {% data variables.copilot.copilot_chat_short %} to generate tables based on existing data or to create empty tables based on your specific requirements. |
| 18 | + |
| 19 | +## Example scenario |
| 20 | + |
| 21 | +You want to create a reference table for the people on your team, including their roles and availability. You can ask {% data variables.copilot.copilot_chat_short %} to generate a table that summarizes this information in a clear and organized way. |
| 22 | + |
| 23 | +## Example prompt 1 |
| 24 | + |
| 25 | +```text copy |
| 26 | +Convert the following information into a markdown table: |
| 27 | +
|
| 28 | +Name: Alice |
| 29 | +Age: 30 |
| 30 | +Occupation: Engineer |
| 31 | +Timezone: PST |
| 32 | +Availability: Mon-Fri, 9am-5pm |
| 33 | +
|
| 34 | +Name: Bob |
| 35 | +Age: 25 |
| 36 | +Occupation: Designer |
| 37 | +Timezone: EST |
| 38 | +Availability: Mon-Thu, 10am-6pm |
| 39 | +
|
| 40 | +Name: Carol |
| 41 | +Age: 27 |
| 42 | +Occupation: Writer |
| 43 | +Timezone: CST |
| 44 | +Availability: Mon-Thu, 8am-4pm |
| 45 | +
|
| 46 | +Name: Dave |
| 47 | +Age: 35 |
| 48 | +Occupation: Manager |
| 49 | +Timezone: PST |
| 50 | +Availability: Mon-Fri, 10am-6pm |
| 51 | +
|
| 52 | +Name: Eve |
| 53 | +Age: 28 |
| 54 | +Occupation: Analyst |
| 55 | +Timezone: CST |
| 56 | +Availability: Mon-Fri, 9am-5pm |
| 57 | +
|
| 58 | +Name: Frank |
| 59 | +Age: 32 |
| 60 | +Occupation: Developer |
| 61 | +Timezone: CST |
| 62 | +Availability: Mon-Thu, 11am-7pm |
| 63 | +
|
| 64 | +Name: Grace |
| 65 | +Age: 29 |
| 66 | +Occupation: Researcher |
| 67 | +Timezone: EST |
| 68 | +Availability: Mon-Fri, 9am-5pm |
| 69 | +
|
| 70 | +Name: Heidi |
| 71 | +Age: 31 |
| 72 | +Occupation: Consultant |
| 73 | +Timezone: PST |
| 74 | +Availability: Mon-Fri, 9am-5pm |
| 75 | +
|
| 76 | +Name: Ivan |
| 77 | +Age: 26 |
| 78 | +Occupation: Intern |
| 79 | +Timezone: CST |
| 80 | +Availability: Mon-Thu, 10am-6pm |
| 81 | +``` |
| 82 | + |
| 83 | +## Example response 1 |
| 84 | + |
| 85 | +{% data reusables.copilot.example-prompts.response-is-an-example %} |
| 86 | + |
| 87 | +{% data variables.product.prodname_copilot_short %} will provide you with a markdown table that organizes the information clearly. You can copy the table {% data variables.copilot.copilot_chat_short %} provides and use it in your documentation or project. |
| 88 | + |
| 89 | +```markdown |
| 90 | +| Name | Age | Occupation | Timezone | Availability | |
| 91 | +|--------|-----|-------------|----------|-----------------------| |
| 92 | +| Alice | 30 | Engineer | PST | Mon-Fri, 9am-5pm | |
| 93 | +| Bob | 25 | Designer | EST | Mon-Thu, 10am-6pm | |
| 94 | +| Carol | 27 | Writer | CST | Mon-Thu, 8am-4pm | |
| 95 | +| Dave | 35 | Manager | PST | Mon-Fri, 10am-6pm | |
| 96 | +| Eve | 28 | Analyst | CST | Mon-Fri, 9am-5pm | |
| 97 | +| Frank | 32 | Developer | CST | Mon-Thu, 11am-7pm | |
| 98 | +| Grace | 29 | Researcher | EST | Mon-Fri, 9am-5pm | |
| 99 | +| Heidi | 31 | Consultant | PST | Mon-Fri, 9am-5pm | |
| 100 | +| Ivan | 26 | Intern | CST | Mon-Thu, 10am-6pm | |
| 101 | +``` |
| 102 | + |
| 103 | +## Next steps |
| 104 | + |
| 105 | +You can experiment with different types of visualizations and data to see how {% data variables.copilot.copilot_chat_short %} can help you create organized and easy-to-read information. For example, you could ask {% data variables.copilot.copilot_chat_short %} to use the `Timezone` and `Availability` columns to create a Mermaid graph that shows overlapping working hours for team members in different time zones. See [AUTOTITLE](/copilot/tutorials/copilot-chat-cookbook/communicate-effectively/creating-diagrams) for more information. |
| 106 | + |
| 107 | +## Further reading |
| 108 | + |
| 109 | +{% data reusables.copilot.example-prompts.further-reading-items %} |
0 commit comments